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, ...DDRMenu Module Template ArgumentDDRMenu Module Template Argument
Previous
 
Next
New Post
11/25/2011 5:52 PM
 

For the sake of this example, I didn't copy anything, just modified in place. I used the template out of the box from http://dnnddrmenutemplates.codeplex.com/. I only copied in the following line you gave me ** , added in a little extra code * for styles:

...Above Is Same as Template
<xsl:template match="root">
*<div class="subnav-grey">
*<div class="subnav-grey-head">
**<xsl:param name="subMenuColumns">3</xsl:param>
*</div>
*<div class="subnav">
<ul>
<xsl:apply-templates select="node" />
</ul>
*</div>
*</div>
</xsl:template>
<xsl:template match="node">
...Below Nothing Changed Either

Full Error Message:

DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style 'ULXSLT': System.ApplicationException: Can't find processor for manifest D:\Sites\DNN\DesktopModules\DDRMenu\ULXSLT\menudef.xml at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromName(String templateName, String manifestName) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) ---> System.ApplicationException: Couldn't load menu style 'ULXSLT': System.ApplicationException: Can't find processor for manifest D:\Sites\DNN\DesktopModules\DDRMenu\ULXSLT\menudef.xml at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromName(String templateName, String manifestName) 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 ---

Thanks for helping me through this...seems like it should be really simple?

 
New Post
11/26/2011 6:42 AM
 

Yeah it shoudl be realy simple you did copy the ulxslt folder to your skin folder right the error says its missing from  D:\Sites\DNN\DesktopModules\DDRMenu\ULXSLT\menudef.xml

So if it cannot find it in skin foldler it will look in desktopmodule folder

 

 
New Post
11/26/2011 12:00 PM
 

I'm not following...I placed the folder in the root DesktopModules directory, not inside my skin. That is one of the options for the Template to be applied across all DNN instances. When I remove that single line of code you provided, there is no error. As soon as I put that single line of code, it errors out. Its crashing on that one line of code, which leads me to believe 1) the syntax is incorrect or 2) the location of the line of code is incorrect.

 
New Post
11/26/2011 12:05 PM
 
A screenshot of my files, setup.

http://screencast.com/t/LpUWUWkJ9qBw
 
New Post
11/27/2011 1:40 PM
Accepted Answer 
Here is the solution...why this isn't documented in the Wiki I have no idea. If someone who has access to that would include this information for other developers.

To Pass a String to your Custom XSLT Menu Template using a Module:

In your Module Settings, in Template Arguments:

NameOfYourCustomAttribute=This is the value of your custom attribute
NameOfYourSecondCustomAttribute=This is the value of your second custom attribute

(Use carriage return between sets)

In your xslt file, you must declare the custom attribute before you use it using XSLT declaration syntax (this is not documented). If using the ULXSLT template, the top lines of code will look like this:










(Last two lines are your custom attributes)

To use these custom attributes, you can now reference them in your actual template HTML output (or any other way you want to use them):



I am new to XSLT, so this was a little confusing to me. I was not aware you had to declare your XSLT paramters first before using them. It makes sense from a programming perspective now that I have figured it out, but the lack of quality documentation for this simple passing of parameters isn't easy for newbies (a lot of DNN developers).

Hope this helps someone!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDRMenu Module Template ArgumentDDRMenu Module Template Argument


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