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...Skins, Themes, ...Skins, Themes, ...Which container gets applied to Module SubpageWhich container gets applied to Module Subpage's?
Previous
 
Next
New Post
5/14/2012 7:09 PM
 

I have created a module using Chris Hammond's template.  And I have added a new page, called \Controls\Dashboard.ascx which has the following code in the module.dnn file to register it:

<moduleControl>
    <controlKey>Dashboard</controlKey>
    <controlSrc>DesktopModules/MyModule/Controls/Dashboard.ascx</controlSrc>
    <supportsPartialRendering>False</supportsPartialRendering>
    <controlTitle>My Dashboard</controlTitle>
    <controlType>View</controlType>
    <iconFile />
    <helpUrl />
    <viewOrder>0</viewOrder>
</moduleControl>

 From the view.ascx file I have a link to this Dashboard control using the following code:

Response.Redirect(Common.Globals.NavigateURL(TabId, "Dashboard", "mid=" + ModuleId.ToString()));

 When Dashboard.ascx loads it has a different style container than the View.ascx page.  I'm wondering where I can make this change at?  I was hoping it would inherit this from the page settings of the module?  Also, when I navigate to Dashboard.ascx is there a way to programatically change the breadcrumbs to say 'My Module --> Dashboard' instead of 'My Module'?

Thanks,

 Sephrial

 
New Post
5/15/2012 4:27 PM
 
it should do - only if the page is an edit control will it be different as those controls are loaded in "admin" mode i.e. they are the only control on the page - please check that your initial view page is also a view control and not edit/settings

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/24/2012 3:28 AM
 
cathal connolly wrote:
it should do - only if the page is an edit control will it be different as those controls are loaded in "admin" mode i.e. they are the only control on the page - please check that your initial view page is also a view control and not edit/settings

 Nope, I am logged in as a regular user and seeing a different skin and container than what I had on the original View.ascx.  What happens when you load another ascx control via Response.Redirect(Common.Globals.NavigateURL(TabId, "Dashboard", "mid=" + ModuleId.ToString())); ?

 Is there a property I can inspect to see which Skin the page is currently using and possibly change it from code behind?

Thanks

 
New Post
5/24/2012 7:44 AM
 
please check the dashboard definition in admin->extensions and see what controltype is used - if it's edit that's the reason you're seeing the different screen (also if it's the only module shown whereas the page has multiple modules thats a clue that you're in edit mode). You can check the skin for the page in the page settings - all non-edit controls will use that skin as long as you remain on the same tabid.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/24/2012 2:31 PM
 

Thanks Cathal,

 I checked under Host -> Extensions, and it says 'View' for Module Type for my Dashboard.ascx page.  Admin -> Extensions as you suggested did not allow me to see the Module Controls.  So, I changed the Edit view from Admin -> Site Settings and you were right that it was using the Edit skin, because now my module has the new skin applied.  But that still begs the question, why is it not using the View skin/container if it's a View module type?  The problem arises when I want to use the Edit skin for one module and the View skin for another.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Which container gets applied to Module SubpageWhich container gets applied to Module Subpage's?


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