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, ...Display Module on All Pages, incompatible with Page TemplatesDisplay Module on All Pages, incompatible with Page Templates
Previous
 
Next
New Post
3/20/2013 3:05 PM
 

Hi,

I believe I posted a question relating to this when I was new to DNN, but I guess I always presumed that the community would fix it.

The problem is that if I set a Module to Display on all pages, then save the page layout that I'm happy with to disk, subsequent pages that I add each get a further separate copy of the original module.

e.g. In my case the module is the entire footer which is supposed to have some config - I create Page 1, save it to a template, create a new page (2) and get 2 footers, create a new page (3) and get 3 footers.

I understand how Show on all pages work, and can get the effect by manually inserting an existing module, I note that it's the same module ID, it's just that importing a template breaks the link.

Looking at the code, it's clear that DeserializeModule always creates a new one, which is "always" going to break it - I figure that the logic should run as follows:

1) Check if the module was saved from the same portal (because the effect wouldn't work on a different portal).

1a) When importing to a different portal, tell the user that the effect doesn't work and make suggestions on how to resolve (i.e. saving a new template page). Create the module as now, i.e. next ID in sequence.

2) If same portal, detect if the numbered module exists:

2a) If it exists, create a link to the existing module

2b) If it doesn't exist, create a new module, but create with the given module ID (might have problems with key constraint etc. but has to be done).

Note: Clearly the originating portal guid would have to be written to the Template, and passed through to the Deserialize functions (or have some kind of DeserializeContext on the Request).

I don't know what the party-line is on why this hasn't been rectified, but surely DotNetNuke needs to be completely in sync with itself - surely that's more important than new graphics or features. Correct operation of Templates with alltabs==true should be looked at by someone shouldn't it?

I may look at this issue during my next couple of projects, a couple of questions though:

1) Can anybody see any gaping holes in my suggested approach or reasoning?

2) If I do fix it, what's the simplest way to get the fix considered for inclusion in an official build? I don't really want to be massively out of whack with the distribution if possible.

Kind Regards,
Mark

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Display Module on All Pages, incompatible with Page TemplatesDisplay Module on All Pages, incompatible with Page Templates


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