• Login
  • Register

DNN Blogs

Written for the Community, by the Community

Add module to all pages. Should you?

Written By Tycho de Waard (SU)
2020-03-18

Every now and then, there are questions on how to use the 'Display Module on All Pages' feature of a module. And every time there is someone stating that the feature is buggy. I always wondered why, as I never experienced issues. Yes, you need a bit of knowledge of what is possible and what the parameters are but if you do, I think it's a great feature.

Why would I want it?

There are several scenarios where you might want this feature:

  • Modules like social media buttons or address. Some choose to include that in the theme but many want it in the footer for more freedom and control
  • Banners. If you have a banner module that shows different ads per page / reload, you can very well display it on all pages
  • Alerts that need to be shown on all pages like 'Due to the corona virus, we request all customers to keep a minimum distance of 1,5 m'. 
  • Modules that are on the majority of pages. Good example is a box with 'This month Free shipping for orders from 50 USD and up'. First add them everywhere and then remove the ones that are not wanted.

Where do I find it?

When you are in edit mode, choose the settings button and on the first tab (module settings), you find the feature under 'advanced settings'.

So, what are the rules?

  1. If you delete a module that is on all pages, you can do that. All other pages are unaffected.
  2. If you want to delete a module from all pages, first unflag 'Display Module on All Pages' and delete the module
  3. if you move the module to another pane it will only work for that instance. So, if you want that for all pages, first unflag the 'display on all pages', move the module to the desired pane and flag it again.
  4. If the pane does not exist on the page, it will be in the content pane. So, if you flagged the Banner in the BannerPane as 'Display on all pages' but the content page does not have a BannerPane, it will be in the contentPane.
  5. If you have a multi language and in language A you have a module that is displayed on all pages, the 'Display module on all pages' will also be set for the module of the first page you update the localization. BUT: it is actually not. So, the module in language B is not displayed on all pages. To get that done is, after you updated the localization of language A (copy module in localization and update), you go to language B and unflag the 'Display module on all pages', update and flag it again. And all is well. This has no impact on language A.

Now, I don't know if this is all how it was intended but for me...as long as I know this, I'm fine... 

Total: 0 Comment(s)

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved