0
votes

I'm trying to implement a menu in sitecore page. Menu that will be available in all the pages.

I can do a rendering that goes to some specific datasource and assign the rendering to a placeholder inside Design Layout of the layout.

However how can they edit the datasource (order, ammount of elements, etc..) item in page A that will be also replicated in page B.

Without going through all the pages to change order, color, text, items etc...

2
Other problem is that i was trying to add "Action List" field type to a template but when i try to edit it in the content editor it crash saying XML empty or null after creating an item with that specific template - Ricardo Azeitona

2 Answers

1
votes

To do that you will want to create a new data template that holds the shareable content on it. So it would have fields for navigation items etc... any setting that you wanted to be shared across pages.

Then in your rendering, you can set the Datasource to this item. Any changes to that item would be reflected across all pages that use it.

You should add the rendering to the standard values of your page templates and set the Datasource to your main default navigation item, then all new pages will get the navigation ready setup.

0
votes

You need design your view in such a way that it should be editable in experience editor mode.

If you have implemented using Glass Mapper there is good section on how to use Edit Frame.

Also you can check below community blog. for more details.

https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/render-field-values-for-mvc-solutions-using-the-sitecore-asp-net-web-cms