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, ...DNN Mega Menu QuestionDNN Mega Menu Question
Previous
 
Next
New Post
5/11/2012 7:39 PM
 
you have limited extensibility with xslt (only to localizationstring and userinrole AFAIR), so you will need to use razor as the templating engine (http://www.dotnetnuke.com/Resources/Wiki/Page/DDRMenu-Razor-templates.aspx) and then you can use the dotnetnuke API's to pull the values back

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/15/2012 1:49 PM
 

I have changed the site to use Razor.

What's the trick for referencing my taxonomy tag?

@using DotNetNuke.Web.DDRMenu;
@{var root = Model.Source.root;}

@helper RenderNodes(IList<MenuNode> nodes) {
 if (nodes.Count > 0) {
  <ul class="navigation_horizontal">
    @foreach (var node in nodes) { 
     <li>
      @if (node.Enabled) {
       if(node.First){
        <a href="@node.Url">@node.Text</a>
      }else{
        <a href="@node.Url">@node.Text</a>
      }
     }
     @RenderNodes(node.Children)
        </li>
   }
     </ul>
 }
}
@RenderNodes(root.Children)


DONEIN.NET DotNetNuke Modules
Feedback * Google Sitemaps * Meetup * Redirector * Share On Facebook * Site Map * Battleship (FREE)
Follow us on Twitter!
 
New Post
5/15/2012 3:43 PM
 
you can use the root.tabid to get the right tabinfo instance and use it's contentitemid to access the taxonomy (via Util.GetContentController().GetContentItem AFAIR though I recommend you read Chris's blog on taxonomy/folksonomy - http://www.dotnetnuke.com/Resources/Blogs/tagid/31.aspx)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/15/2012 4:44 PM
 
Also, since switching to the Razor method, I am having trouble getting the submenu's to switch to visible on rollover (they are rendered in code). The example unfortunately is for a root-only menu.

DONEIN.NET DotNetNuke Modules
Feedback * Google Sitemaps * Meetup * Redirector * Share On Facebook * Site Map * Battleship (FREE)
Follow us on Twitter!
 
New Post
5/15/2012 5:02 PM
 
cathal connolly wrote:
you can use the root.tabid to get the right tabinfo instance and use it's contentitemid to access the taxonomy (via Util.GetContentController().GetContentItem AFAIR though I recommend you read Chris's blog on taxonomy/folksonomy - http://www.dotnetnuke.com/Resources/Blogs/tagid/31.aspx)

 Read through the about 6 different articles on that page but didn't see a reference to accessing this from a Razor script.


DONEIN.NET DotNetNuke Modules
Feedback * Google Sitemaps * Meetup * Redirector * Share On Facebook * Site Map * Battleship (FREE)
Follow us on Twitter!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN Mega Menu QuestionDNN Mega Menu Question


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