Try our conversational search powered by Generative AI!

Name/PageName for shared block

Vote:
 

I would like to use a shared blocks Name as well as date in the renderd block. Just as you would do with a regular PageData object.  

Rendering is easy, (CurrentBlock as IContent).Name but how to make on page edit work? 

#114791
Dec 22, 2014 13:46
Vote:
 

Joel showed how to render properties without using PropertyFor if you are using MVC that is:

http://joelabrahamsson.com/how-episervers-html-helper-propertyfor-works/

If you are using Webforms check out the documentation on how to add edit hints for proeprties:

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-CMS/75/Rendering/Adding-edit-hints-without-using-Property-web-control/

Regards,

Tobias

#114802
Edited, Dec 22, 2014 18:50
Vote:
 

Thanks for the reply Toni. I did not get on page edit to work with block name. Unfortunate I dont think this is possible either, atleast not at the moment.

#115721
Jan 16, 2015 14:35
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.