Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Hi Andrey!
For the definition you could use the UIHint attribute to let EPiServer know to serve up the image picker.
[UIHint(UIHint.Image)]
public virtual ContentReference Image { get; set; }
As for using the dynamic properties. I think there still could be some performance issues if it's used extensively. If your setting the override on many
Thanks, Petter.
We know about using UIHint.Image for page type properties.
But how to select a media asset on a dynamic property?
Right sorry. Haven't used Dynamic properties for ages.
It does seem that the dynamic props been getting the short en of the stick when it comes to UI. Im guessing you could write your own but I have no idea where to try and plug it in. Guess we need a epi guy for that.
As for the performance issue. I guess you could work around it a bit with the way described by Joel here http://joelabrahamsson.com/working-with-dynamic-properties-and-page-type-builder/
Thanks.
It seems to me that nobody uses dynamic properties in new versions of EPiServer.
Perhaps this feature is "obsolete" and it is better to implement this type of functional in other way
as in the article mentioned by Petter.
Hi Andrey!
Dynamic Properties are still supported, although in a somewhat bad shape right now, for instance not supporting the new media system in EPiServer 7.5. We have done some research of the different ways to support the need for dynamic/inherited settings in a world with typed models. This has resulted in a few different alternatives going forward but there has been no decition yet of how and when this will be done although I can tell that it's prioritized.
Hi All,
Is it reasonable to use DynamicProperties in 7.5?
There are some articles which states that it was a bad practice in previous version of EPiSever because of the performance issue.
We are trying to use dynamic properties to override backgroud image in product hierarchy.
So the second question is how to select an image from media assets in dynamic property?
We have not found appropriate dynamic property type which provides and ability for content editor to select existing image from media assets.
The only way we see is to define DynamicProperty of
"URL to image" type and to type full path to an image (http://site/globalassets/image.jpg). But it is not user-friendly and not consistent with other 7.5 interface.
Thanks,
Andrei.