I recently changed a contentpicker to a urlpicker as I require the user to choose either an internal or external link (amongst other things). So I can have a reusable xslt script, I was passing the info to my xslt macro via a parameter. When it was a contentpicker, the macro worked correctly, however, since I changed it to urlpicker, the parameter is never being set even though I have populated the urlpicker and published the page. (I checked using <xsl:copy-of select="/macro" />).
Can anyone offer any advice? I've tried experimenting but nothing has worked. I'm using umbraco 4.7.
I can reproduce this, but not sure of a solution (yet). Problem seems to be with when the data format is set to XML, as it works fine as CSV (althought not ideal for XSLT right?!)
As as workaround, you could access the Url Picker data (XML) directly in the XSLT? (quick code snippet)
Sorry for the delay in my reply, thank you for investigating this issue! I was wanting to use this datatype as one part of a widget thing where there could (and probably will) be more than one on an individual page, which is why I wanted to pass it in as a paramater.
I think I will just have to rethink how I implement this since it doesn't look like I can do it in the way I originally wanted.
UrlPicker - Passing as a parameter in a macro
Hi
I recently changed a contentpicker to a urlpicker as I require the user to choose either an internal or external link (amongst other things). So I can have a reusable xslt script, I was passing the info to my xslt macro via a parameter. When it was a contentpicker, the macro worked correctly, however, since I changed it to urlpicker, the parameter is never being set even though I have populated the urlpicker and published the page. (I checked using <xsl:copy-of select="/macro" />).
Can anyone offer any advice? I've tried experimenting but nothing has worked. I'm using umbraco 4.7.
Thanks!
Hi Sarah,
I can reproduce this, but not sure of a solution (yet). Problem seems to be with when the data format is set to XML, as it works fine as CSV (althought not ideal for XSLT right?!)
As as workaround, you could access the Url Picker data (XML) directly in the XSLT? (quick code snippet)
Unless there's a reason to use it with a Macro parameter?
Cheers, Lee.
Hi Lee
Sorry for the delay in my reply, thank you for investigating this issue! I was wanting to use this datatype as one part of a widget thing where there could (and probably will) be more than one on an individual page, which is why I wanted to pass it in as a paramater.
I think I will just have to rethink how I implement this since it doesn't look like I can do it in the way I originally wanted.
Thanks for your help!
Sarah
is working on a reply...