I am a bit out of practice and got stuck with querying the multi-url-picker object. And there is no documentation about the usuage of the multi-url-picker with xslt. I have a Document Type called Vacancy with a Generic Type of Additional Documents, which is of Type multi-url-picker.
This is what I have tried to do (and it doesn't do a thing ^^):
XSLT for multi-url-picker
Hi,
I am a bit out of practice and got stuck with querying the multi-url-picker object. And there is no documentation about the usuage of the multi-url-picker with xslt.
I have a Document Type called Vacancy with a Generic Type of Additional Documents, which is of Type multi-url-picker.
This is what I have tried to do (and it doesn't do a thing ^^):
Thanks. Hope someone can help me,
regards,
Andy
Hi Andy,
Check this one out : urlpicker-helper on GitHub
It's a file you can include - or you can grab the code to see how it's used...
/Chriztian
Hi Chriztian,
thank you. I made an urlpicker-helper.xslt file.
included in the script file and put this in place:
<xsl:apply-templates select="additionalDocuments" mode="urlpicker" />
This doesn't output the addionalDocuments items.
Is there something I am missing or doing wrong?
thanks,
Andy
ok I found my mistake I should have done it like this:
<xsl:apply-templates select="$currentPage/additionalDocuments" mode="urlpicker" />
Sorry, wanted to mark Chriztian's answer as the right one.
is working on a reply...