Forum


HomeHomePublicPublicAdministrationAdministrationHow to add same module to more pages?How to add same module to more pages?
Previous
 
Next
New Post
9/7/2012 4:41 AM
 

Hello, 

In dnn 6 there is a option to add a module to all pages, but is it possible to add a module to specific pages and how?

Thanks. 


Benjamin 

 
New Post
9/7/2012 7:09 AM
 

Hi Benjamin,

No it is not possible to do that out of the box, but depending on home many pages your site has, you could potentially do this:

1 - Check the module as "Display module on all pages";

2 - Go to "Admin/Page Management";

3 - Then you can quickly click on the pages you DON'T want the module in;

4 - Go to "Modules" on the right side and click the "X" to remove the module from the page;

This might not be ideal, but it may work for you. Of course if you have hundreds of pages, this will not be that fast either.

Cheers,

Aderson

 
New Post
9/7/2012 10:23 AM
 
aderson wrote:

Hi Benjamin,

No it is not possible to do that out of the box, but depending on home many pages your site has, you could potentially do this:

1 - Check the module as "Display module on all pages";

2 - Go to "Admin/Page Management";

3 - Then you can quickly click on the pages you DON'T want the module in;

4 - Go to "Modules" on the right side and click the "X" to remove the module from the page;

This might not be ideal, but it may work for you. Of course if you have hundreds of pages, this will not be that fast either.

Cheers,

Aderson

 Thank you Aderson. 

I did that and after I marked show this module on all pages. I got this error in my event viewer:

ModuleId: 2805

ModuleDefId: 133

FriendlyName: Industriprodukter

ModuleControlSource: DesktopModules/DDRMenu/MenuView.ascx

AssemblyVersion: 6.2.3

PortalID: 0

PortalName: Globalstole

UserID: 1

UserName: host

ActiveTabID: 46

ActiveTabName: Pages

RawURL: /Admin/Pages.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://new.globalstole.dk/Admin/Pages.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: af9db37d-c80c-4048-ab16-9f7047ea131a

InnerException: Couldn't load menu style 'DNNStandard': System.Web.HttpException: 'DNNStandard/*menudef.xml' is not a valid virtual path. at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) at System.Web.HttpServerUtility.MapPath(String path) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle)

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.Web.DDRMenu.MenuBase.Instantiate

StackTrace:

Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style 'DNNStandard': System.Web.HttpException: 'DNNStandard/*menudef.xml' is not a valid virtual path. at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) at System.Web.HttpServerUtility.MapPath(String path) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) ---> System.ApplicationException: Couldn't load menu style 'DNNStandard': System.Web.HttpException: 'DNNStandard/*menudef.xml' is not a valid virtual path. at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) at System.Web.HttpServerUtility.MapPath(String path) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.MenuView.OnPreRender(EventArgs e) --- End of inner exception stack trace ---

Source:

Server Name: SRV01


What does it mean? I have searched on dnn forum and one had same issue and solved it with this:

I have expericed this error too. Seems you are creating your own skin and want to use the DDRMenu directly.
You may notice that, with default, there's a DNNMega and DNNStandard folder in the skin folder, then that's the problem.
If you use the Menu and set the MenuStyle="StyleName", then you need copy any of "DNNMega and DNNStandard" and rename it to your "StyleName"(as well as the related file's name in the folder), then the error will disappear. 

But I don´t know what she mean. 


 
New Post
9/7/2012 12:11 PM
 

Try copying this folder and its content:

\Portals\_default\Skins\DarkKnight\DNNStandard

to the folder of your new skin like \Portals\_default\Skins\[YOUR SKIN NAME]\DNNStandard . This may solve the problem and I think it is what she meant.

Cheers,

Aderson

 
Previous
 
Next
HomeHomePublicPublicAdministrationAdministrationHow to add same module to more pages?How to add same module to more pages?



Try FREE
30 days money back guaranteed