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, ...Problem with DNN megamenuProblem with DNN megamenu
Previous
 
Next
New Post
4/16/2016 5:18 AM
 

Hello everyone

We have added megamenu cshtml that is explained here 

Also, we have added these two lines of code to our HomePage.ascx:

<%@ Register TagPrefix="dnn" TagName="MENU" src="~/DesktopModules/DDRMenu/Menu.ascx" %>

 <dnn:MENU ID="MegaULRazor" MenuStyle="megamenu" runat="server"></dnn:MENU>

 

but we get the following error:

DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style 'megamenu': System.ArgumentException: Illegal characters in path

Since we don't know where to add the files, we have copied them to "Portals\_default\Skins\SampleSkin\SampleNav"

And these are the files that we added:

.gitattributes

.gitignore

megamenu.css

MegaULRazor.cshtml

readme.markdown

 TopMenu-menudef.xml

And these is what is written in TopMenu-menudef.xml file:

<?xml version="1.0" encoding="UTF-8"?>
-<manifest>
<template>MegaULRazor.cshtml</template>
-<stylesheets>
<stylesheet>megamenu.css</stylesheet>
</stylesheets>
</manifest>

Any kind of help would be highly appreciated

 
New Post
4/18/2016 9:08 AM
 
HI,

Looks like the first line you have added is correct but the second:



is not....

The MenuStyle tag should point to the folder in the skin folder for the menu:

If you are using the "SampleSkin" for your site you should have a folder in "SampleSkin" called "SampleNav" which you have explained thats where you have placed the mega menu files

so to use that menu you should change the menustyle tag to:



The following files are not needed:

.gitattributes
.gitignore
readme.markdown

I would also rename the TopMenu-menudef.xml file to menudef.xml

Hope this helps,

Regards,
Geoff.


      
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Problem with DNN megamenuProblem with DNN megamenu


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