|Number of votes:||0|
Using Page Properties as dynamic properties in EPiServer 7
Dynamic properties was great for having properties that is inherit. But the new interface of EPiServer 7 makes this a bit difficult. One solution is to modify the EPiServer: Property code so it allows for finding the property that have value up in the page structure. And if the Property exist on the page allow the editor to add values to the current property and break the inherit chain.
The code is simple. Find the first property (can be a page block) that have value and display that
If you have page block SideBarImage with no data, but the parent page have data it will display
but when you try to edit it it will be empty
if you go to the parent page and try to edit it it will have data of course
You will need to register you new web control
And you can use it like this
Please login to comment.