Developer forum

Forum » Templates » Generate MainNavigation + Ecom menu with Razor

Generate MainNavigation + Ecom menu with Razor

Dmitrij Jazel
Reply

Hello everyone,

Could someone please tip on how to access SiteNavigation in Razor and Include eCommerce groups in it? :-)

Structure (just 1 level plain)

  • {eCom Group 1}
  • {eCom Group 2}
  • {eCom Group 3}
  • About us
  • Contacts

Should not be so hard to do.

I would have to make a for-each loop, and reference the menuItem (as far as I understand)...

So question is how to get to the menu item? :)

 

Regards,

Dmitrij

 

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Navigations in Razor has to be implemented as you would in HTML. Using dwnavigation class and an XSLT.

 

BR Nicolai

Votes for this answer: 1
 
Dmitrij Jazel
Reply

Hej Nicolai,

Thanks for quick info :)

Hmm, in that case are you looking forward to it some near future? :)

Regards,

Dmitrij

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Yes, will be there in a later release.

 

NP

Votes for this answer: 1

 

You must be logged in to post in the forum