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, ...dnn600 error in the way that containers are displayed for terms/privacy etcdnn600 error in the way that containers are displayed for terms/privacy etc
Previous
 
Next
New Post
7/26/2011 9:00 PM
 
HI all,

Some days I seem to wake up and become rapidly convinced that the world has slipped sideways.

Been doing some testing with DNN600 and I'm having troubles trying to work out how to control the container that is being used to render pages like terms and privacy.

Correct me if im wrong but I had it in my mind - that in the past this was controlled by whatever container was assigned to the Edit Control in Admin Settings -  as is stated by the tooltip on that page - "The selected container will be applied to all edit mode (ctl=) modules on the site."

After going round in circles for some time I resorted to digging into the code and find that this is NOT how the process is currently coded.

All modules that have a ctl= are handled by the method ProcessSlaveModule() in DotNetNuke.UI.Skins.skin.cs file.

And the selection of the container to use is being handled by this code:

slaveModule.ContainerSrc = PortalSettings.ActiveTab.ContainerSrc;
if (String.IsNullOrEmpty(slaveModule.ContainerSrc))
{
     slaveModule.ContainerSrc = PortalSettings.DefaultPortalContainer;
}

Someone please correct me if I'm going totally crazy - but this code is doing something totally different to what is indicated in the tool tip.

This code is pulling the container to be used from the container used by the current ActiveTab - so basically which ever container is currently being used by the page you were last on will be used as the container for the slavemodule - being - any Edit page or Terms or Privacy.

This code needs to be changed to :

slaveModule.ContainerSrc = PortalSettings.DefaultAdminContainer;
if (String.IsNullOrEmpty(slaveModule.ContainerSrc))
{
   slaveModule.ContainerSrc = PortalSettings.DefaultPortalContainer;
}

Westa


 
New Post
7/29/2011 7:01 PM
 
Please record it at support.dotnetnuke.com - i suspect this was introduced when we were trialling the different approaches to popups as controls such as ctl=login, ctl=registration need popup's and others such as terms do not.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/29/2011 7:16 PM
 
Reported a couple of days ago  as  http://support.dotnetnuke.com/issue/V...

Cheers

Westa
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dnn600 error in the way that containers are displayed for terms/privacy etcdnn600 error in the way that containers are displayed for terms/privacy etc


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