allowing : in xslt output
Hi there, we're hoping to use the 'add this' tool in some of our pages. When speaking with the add this support team, they told us we had to use the legacy markup which looks like this:
<a class="addthis_button_compact icon icon-share" addthis:title="{title}" addthis:url="{path}" href="{path}" title="Share"></a>
My issues is that I'm unable to save the xslt format with the : in it. I tried to use <!--#protect and <!--#passthrough and <!--#START-CODE to try to get Cascade to process the {variables} but allow the :
I know I'm missing something small, any help, as always appreciated.
Thanks!
Brendon
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Tim on 18 Nov, 2015 03:18 PM
Hey Brendon,
Try adding a namespace for 'addthis' at the top of your XSLT Format. For example:
Then, you probably won't even need to use any passthrough/protect code sections.Let me know if that does the trick.
Thanks
Support Staff 2 Posted by Tim on 02 Dec, 2015 02:42 PM
Hey Brendon,
Just wanted to make sure you saw [my previous comment](http://help.hannonhill.com/discussions/xslt-formats/6471-allowing-in-xslt-output#comment_38494114). Let me know if that helps.
Thanks!
3 Posted by birwin on 02 Dec, 2015 03:10 PM
Hi Tim,
I totally forgot to reply, yes that did the trick! Thank you!
Support Staff 4 Posted by Tim on 02 Dec, 2015 03:12 PM
Sweet! Glad that worked, Brendon. Thanks for the update and have a good one!
Tim closed this discussion on 02 Dec, 2015 03:12 PM.