Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Making module invisibleMaking module invisible
Previous
 
Next
New Post
12/22/2006 7:35 AM
 

Is it possible to make a module invisible through code.

The SQL-database has a table 'Relation' with a field 'Type'. With the field 'Type' a relation can be defined as manager or employee. The table 'Relation' has a field 'DNN_User' too which gives the user name of the DNN-user. With a SELECT-statement I can see if a user is a manager or an employee.

When a manager logs in at the DNN website I want to show more modules (Text/HTML, Media, etc.) than when an employee logs in. So, I want to make some modules invisible when an employee logs in.

Is this possible?

Thanks in advance.

 
New Post
12/22/2006 12:34 PM
 
Assuming you have segmented your users into manager and employee security roles you can:
  • create pages of content only visible to each role or
  • set security access at the module level on a page
These options are available out of the box in the page or module settings.

If you have not placed users in these groups it is not too late.  Create the employee group and make it public and auto.  This will place every user into the group.  Optionally you can skip this step and just use the Registered Users group for this purpose.  Next create the Manager security role and do not make it public or auto.  You then will manually assign users into this group.
 
New Post
12/23/2006 5:23 AM
 

I know seperate paged can be made to show on each type of relation.
Both pages are almost the same with several modules. 1 or 2 modules are different.

Because I don't want to maintain the same modules on both pages I would like to make the different module invisible when an employee is logged in.

 
New Post
12/24/2006 8:03 AM
 
So put everything on one page.  Then set permissions at the module level for the 1 or 2 that are different.
 
New Post
12/25/2006 7:31 AM
 

That's the idea.

The permission for a module can be set for administrators, all users, registered users, subscribers and Unauthenticated Users.
Both of my users (managers and employees) are registered users. How can I make a difference between them.

So, all modules on the page have permissions for registered users at this moment. I think I need an extra permission for visibility of 1 or 2 modules for the managers.

May be I need a extra module to buy or I need to program some code.
I hope someone can give me that solution.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Making module invisibleMaking module invisible


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out