Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  adding module to page in codebehind
Previous Previous
 
Next Next
New Post 3/31/2006 12:46 PM
User is offline Steven Walk
3 posts
10th Ranked


adding module to page in codebehind 
I am developing for our company's new DNN website.
I have previously used PHP nuke, but that was years ago.

My delima is as follows:

my boss wants me to put a module (lets say the Announcements) on a
page.

He then wants me to display that module based on security level: IE
user level one sees Announcement_1
user level Two sees Announcement_2 etc

I don't really see any way in the codebase [or i should say i haven't
found] to add a module programatically to the page, or even a way to
alter the module ON a page.

What I was thinking of is as follows :

Creating a seperate module instance in the DB for each user module.
Checking the user security when they hit the page
Displaying the appropriate module.

So, in a nutshell .. can anyone point me at a controller etc that I am
missing in the DNN objects that I can use to either programatically
insert a module on a page, or change the module that is loaded into a
'placeholder' module ?

Thanks
 
New Post 3/31/2006 2:49 PM
User is offline Jeff Martin
61 posts
www.jeffmartin.com
10th Ranked


Re: adding module to page in codebehind 

Generally Data Level security will take a customization of the existing module or a new custom module.

What I could see you doing instead is this:

for the announcements module:

Add a module Announcements and make it visible to Role 1, 2 and 3

Add a 2ned Annoucements module and make it visible to only Roles 1 and 2.

Make a third one only visible to role 1.

 

Somone in Role 3 would only see the announcements in the first module, while someone in ROle 1 would see all of them

However, if this is by user (instead of by role, or if you had 1000 roles) this may not be particularly practical.

 


Jeff Martin
MCSD C#
My Site
 
New Post 3/31/2006 3:04 PM
User is offline Steven Walk
3 posts
10th Ranked


Re: adding module to page in codebehind 
of course, thats what it is going to turn into :

What we really have is a custom project based module that loads up info based on user / security / etc data
They want to add 'announcements' and news and a chat module to each 'project page' .. and since there are projects being created and removed all day long .. yeah .. its not really an option :P

I would THINK there has to be some way to access the 'modules' listed on a page in memory and add another module [even if its predefined] to them. I mean, its .NET after all :P

I guess what I have to write is a module, that somehow loads other modules in itself. Of course, no idea where to start on that :P
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  adding module to page in codebehind
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com
CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP