I am trying to group my output from a Repeated Custom Content data type. I get results, but with duplicates as I don't appear to be specifying the key correctly. Any help would be appreciated.
You seem to be mixing the old XML Schema with the new one - the GetPreValueAsString() gets its value from an old-style data[@alias = 'district'] property, whereas the key() fetches item nodes based on the new-style district property... so which is it? :-)
Grouping for Repeated Content
I am trying to group my output from a Repeated Custom Content data type. I get results, but with duplicates as I don't appear to be specifying the key correctly. Any help would be appreciated.
Hi Connie,
You seem to be mixing the old XML Schema with the new one - the GetPreValueAsString() gets its value from an old-style data[@alias = 'district'] property, whereas the key() fetches item nodes based on the new-style district property... so which is it? :-)
/Chriztian
I'm running the new schema but Repeatable Custom Content was never truely updated for 4.5 so still uses the old schema. That's why the mixture.
I think you hit it on the head... because RCC still uses the old format, I have to refer to district via that old format:
is working on a reply...