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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Multiple view control for a single ModuleMultiple view control for a single Module
Previous
 
Next
New Post
7/8/2010 9:21 AM
 
As Salamualaykum All,

I am developing Module where i need to have different view for different Roles (All User) one View & Admin needs to have another View.

The User View is present in All Pages.
But the Admin View is present in single page,

Can i do this or rather how can i do this ???

Thanks
Regards
Muzammil
 
New Post
7/10/2010 6:40 AM
Accepted Answer 
Al Hamdulliah at last after a long struggle & reading i found the way to do that. It was simple after i figure it out...

Those who are looking for this sought of result 
Scenario 
=======
Having one module with 2 different view for different roles.
Like one View is for Users(both registered as well as anonymous) , And other view is for Admin on single Page.

Below are step to take care
=====================
1. Login as Host (make sure you are in Edit mode)
2. Add Control ( Default View)
Host -> Module Definition -> mosue Over the module Definition you will menu -> Select the Create New Module

3. In Create Module From, Select Control

4. In Module Folder: Select Folder of your module

5. In Resource : Select the Default View Control (the View for users & anonymous)

6. Give Module Name & add some Description & Click Create Module

7. go Back to Host -> Module Definition

8. In the List of Modules; Find the Newly created Module

9. Select the Pencil Icon (Edit)

10.  Goto "Module Definitions" -> Click Add Definition

11. Provide a Friendly Name & Click Create Definition

12. Now you should see an empty Module Controls

13. Click the Add Module Control

14. Follow the procedure from step 3. for adding control

15. Make user that Type is set to "View"

16.  Now that we have both the Controls in One module.Now Lets Add the Control to Page we require.

17. Goto Home & add the Module

18. You Will see both the Control are Visible go ahead & Delete the Admin View  (This is for user View & anonymous users)

19. In the Setting  for the control change the setting are required.

20. Add New Page & add Module to that Page & Now Delete User Control View.

21. That's it....

Now we have both different view for single module.....

Thanks
Regards
Muzammil 




 

 
New Post
10/17/2010 10:35 PM
 
Thanks you very much!
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Multiple view control for a single ModuleMultiple view control for a single Module


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