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 1:47 PM
 

In the settings for the DDRMenu, there is one for TemplateArgument:
http://www.dotnetnuke.com/Resources/W...

This article however does not explain nor give an example of how to actually pass an argument. I've tried several "guesses", but none of them work.

After that value is defined, how do I use it in my custom template? For simplicity sake, I am using the most simple template, ULToken.
http://www.dotnetnuke.com/Resources/W...

Again however, this article does not explain the syntax for working with TemplateArguments.

Essentially for this example, I simply want to pass a line of text to be displayed in the token template for an instance of the module. Thanks.


 
New Post
11/25/2011 4:20 PM
 

Hi

I don't know if it works in token templates i have only don it in xsl templates and than you do it like this

<ddr:MENU ID="NavMenu1" MenuStyle="mega" runat="server">
<TemplateArguments>
<ddr:TemplateArgument name="subMenuColumns" value="5" />
</TemplateArguments>
</ddr:MENU> 

And in my xsl I have

<xsl:param name="subMenuColumns">3</xsl:param>

 

 
New Post
11/25/2011 4:38 PM
 

I found the setting syntax for TemplateArguments buried here:

http://www.dotnetnuke.com/Resources/W...

Name=Value (which I'd tried first just guessing) * one set per line *

However, I am not sure how to reference that value in a TOKEN template.

If I use the ULXSLT template, I also have an issue referencing. I am trying to place a line of text above the opening UL. Using @Armand code, I get a "Couldn't load menu style 'ULXSLT': System.ApplicationException: Can't find processor for manifest..." error.

 
New Post
11/25/2011 4:49 PM
 
Accidentally accepted my own "answer"...I do not see an option to unaccept an answer.

If TemplateArgument is the incorrect place to pass data into in, is ClientOptions more geared for this? I've seen half examples for both. If so, what is the syntax to put into the XSLT and TOKEN to retrieve data?
 
New Post
11/25/2011 5:33 PM
 
did you copy the entire uxslt folder with the xslt file and the menudef.xml etc. Your error tells that it cannot find your menu syle so not the folder not the menudef.xml or not the xslt defined in the menudef.xml
 
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