Before I re-invent the wheel, does anyone know of an existing data-type that lists the properties of a content type (whether that be a document, media or member type)?
Having a look around the core/APIs, there is a macro rendering control called "propertyTypePicker", which is almost what I am after.
If one doesn't exist, then I'll code one up for uComponents vNext.
For a client project there was a requirement to map a content node to a member property (can't go into too much detail, under NDAs) ... so we used that data-type for mapping purposes.
Other uses could be when you want to specify a property alias within a macro, e.g. for an RSS feed, knowing which field contains the title, description, etc.
The current usage may be edge-case, but as with most uComponents data-types, when you do need them - they are available to help.
Property Picker Data Type?
Before I re-invent the wheel, does anyone know of an existing data-type that lists the properties of a content type (whether that be a document, media or member type)?
Having a look around the core/APIs, there is a macro rendering control called "propertyTypePicker", which is almost what I am after.
If one doesn't exist, then I'll code one up for uComponents vNext.
Cheers, Lee.
Couldn't find one... so I wrote one for uComponents. Will be released in v4.0.
Cheers, Lee.
Cool thanks,
I'm trying to figure out if which case we would need that new datatype, could you please give an example of why to use it ?
Thank you very much
Hi fabrice,
For a client project there was a requirement to map a content node to a member property (can't go into too much detail, under NDAs) ... so we used that data-type for mapping purposes.
Other uses could be when you want to specify a property alias within a macro, e.g. for an RSS feed, knowing which field contains the title, description, etc.
The current usage may be edge-case, but as with most uComponents data-types, when you do need them - they are available to help.
Cheers, Lee.
Super thank you very much
is working on a reply...