Try our conversational search powered by Generative AI!

Using Episerver:pagetree in razor view

Vote:
 

Hello,

My name is paqman and I'm new to EPiServer.

We are currently developping the sitemap of our website on EPiServer 7.5 (using MVC4/razor)

I've seen some tutos about using PageTreeData and the webcontrol episerver:pagetree to render it, always with "classic" asp. (i.e http://www.frederikvig.com/2009/12/part-7-creating-the-sitemap-page-create-an-episerver-site-from-scratch/ ).

The question is, is there a way to use the pagetree webcontrol to display the sitemap from a razor context ? 

Thanks for any help

#80732
Jan 30, 2014 16:03
Vote:
 

Mixing MVC (I assume that you're using the MVC pattern since you're using Razor) and WebForms controls makes things a little more difficult.

I would suggest that you either find or create a HTMLHelper that works similar to the PageTree.

The toolkit EPiBoost (http://epiboost.codeplex.com/) should contain some usefull features that you might like.

#80751
Jan 31, 2014 8:21
Vote:
 

Thanks for the tool.

I finally explore the PageTreeData in the view and render every level manualy.

#80936
Feb 05, 2014 11:58
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.