Hi Guys,
We have started to use ItemTypes extensiveley and we are facing the following issue:
retrive the values of a field recursively based on the ItemType.
More precisely, we have several tracking codes that are differend based on the structure. We have created an ItemType called Event and each structures will be subordinated to this ItemType. What we need, is to set up some values in some of this ItemType fields and retrive them in all pages that are subordinated.
Something similar with how the WebsiteProperites works but instead of having them only in the root, we want to have them at some point along the structure.
In Umbraco we use to do that with Xslt $currentPage/ancestor-or-self::* [nodeType()='SomeDocumentType'][1]/FieldValue.
Would this be possible with a Razor function? Something that will be a default functionality for DW?
Something like GetItemByItemType("Event") ?
Thanks,
Adrian