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, ...Razor Scripts in DNN 5.6Razor Scripts in DNN 5.6
Previous
 
Next
New Post
10/28/2011 7:07 PM
 
I am using a Razor script template to manipulate the display of a DDR menu. I am essentially using the example found on this page: <a href="http://www.dotnetnuke.com/Resources/Wiki/Page/DDRMenu-Razor-templates.aspx">http://www.dotnetnuke.com/Resources/Wiki/Page/DDRMenu-Razor-templates.aspx</a><br /> <br /> The code works fine on my 6.0 development set-up, but when I move it to 5.6 instead of gathering the nodes from my page structure, it gathers the nodes from the DNN control panel. In 5.6, I only see menu items when I am logged-in and they pertain to the DNN control panel, items like Site Settings, Page, Extensions, etc.<br /> <br /> The script starts off like this:<br /> @using DotNetNuke.Web.DDRMenu;<br /> @{ var root = Model.Source.root; <a href="mailto:}@helper">}</a><a href="mailto:}@helper"> <p>@helper</p> </a> <p> RenderNodes(IList<MenuNode> nodes) {<br />  if (nodes.Count > 0) {<br />   <ul><br />    @foreach (var node in nodes) {</p> <br /> Why is it gathering the wrong nodes in 5.6? Why does it work differently from 5.6 to 6.0? Can I make it gather the proper menu nodes in 5.6? The DDR menu works fine with other templates.<br />
 
New Post
10/28/2011 7:34 PM
 
Hi Craig ~

I'm not going to be a ton of help here...but I can tell you that we went through a massive UI overhaul for 6.0.  This included updates to the DDR Menu as well.  So I suspect you're just seeing the side effect of changes.  I'm sure you can get the results your looking for, but because of the magnitude of the changes it will probably require some work.

I'm sure someone else with more specific knowledge will reply!

Cheers

Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
10/28/2011 9:42 PM
 

A bit of further investigation suggests that it is the DDR menu itself that is retreiving the wrong node set. Is there a different version of  the DDR menu for 5.6 vs 6.0?

When I see the number of errors I encountered/observed right here on the DNN site when I returned to make this post, I realize I should be surprised our site works as well as it does. Examples: Log-in button sits on top of remember me check box. Profile form required fields that did not have red indicator, and browser indicates page contains script errors. My original post is now peppered with HTML. It looks like 6.0 may not really be production ready. None of the litlte help buttons seem to work -- can't get a click cursor.

 
New Post
10/28/2011 9:43 PM
 
Also, message that is displayed after a post wraps in a way that covers itself and makes the message unreadable.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Razor Scripts in DNN 5.6Razor Scripts in DNN 5.6


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