Hi all. I had a simillar issue, but in my case I could get the "share" hypertext to render, but all icons were missing.
I then followed ALL suggested methods here our.umbraco.org/.../stop-html-tags-from-self-closing, but this caused the problem described by the original poster, Webspas. It seems the icons iterated and were spit out randomly.
Finally I foolowed his last suggestion and placed a in the last A tag, and all seems to work fine.
What are your reasons for placing this script in a XSLT file instead of in the <head> section or right before the closing </body> tag in the master template?
If you really need to insert it into a XSLT file I guess this should be possible to do like this
@ Jan Skovgaard: I attempted to place the script directly in my master template with the same negative results. Therefore I created a macro. Either way, it renders poorly without the hack.
@ Jan Skovgaard: I attempted to place the script directly in my master template with the same negative results. Therefore I created a macro. Either way, it renders poorly without the hack. By the way, I am having problems with the JavaScript link, not a span tag. I attempted the method you describe, but not until adding a non-breaking space to my last a tag did the browser render properly.
Happy to hear you got it solved by placing the script in the template. I had a hard time to figure out why the </script> would be removed when placing it there...so it turns out that it does'nt :-)
@Jan: I'm running 4.6.1. Whiich version did you experince that problem with? Are you saying the </script> tag disappeared from your page when placing it in the template?
No I have not experienced the problem when inserting it directly in the template, but you wrote you experienced the problem when inserting it directly in your master template in a previous post. That was got me a bit puzzled - but you got it working know and that's what matters :-)
AddThis <script> problem
I would like to use the great sharing function that AddThis.com provides. But when I paste the script part:
on the template get 6 extra share buttons on random places.
If I place the script in the XSLT file the browser reads until the script and stops. The bottom of the site is not showing.
Does anyone know how to pull this off currectly? I'm using Umbraco 4.5.1.
Well, I got rid of the extra share buttons by adding in the final share link...
Xslt's output is by default xml. so it wil close empty xml tags:
<script></script> becomes <script />
You browser wont like this and your page wil die
more info in the wiki
http://our.umbraco.org/wiki/how-tos/xslt-useful-tips-and-snippets/stop-html-tags-from-self-closing
Hi all. I had a simillar issue, but in my case I could get the "share" hypertext to render, but all icons were missing.
I then followed ALL suggested methods here our.umbraco.org/.../stop-html-tags-from-self-closing, but this caused the problem described by the original poster, Webspas. It seems the icons iterated and were spit out randomly.
Finally I foolowed his last suggestion and placed a in the last A tag, and all seems to work fine.
Hi guys
What are your reasons for placing this script in a XSLT file instead of in the <head> section or right before the closing </body> tag in the master template?
If you really need to insert it into a XSLT file I guess this should be possible to do like this
<xsl:text disable-output-escaping="yes"><![CDATA[<script src="pathtoscript"></script>]]></xsl:text>
Cheers
/Jan
@ Jan Skovgaard: I attempted to place the script directly in my master template with the same negative results. Therefore I created a macro. Either way, it renders poorly without the hack.
@ Jan Skovgaard: I attempted to place the script directly in my master template with the same negative results. Therefore I created a macro. Either way, it renders poorly without the hack. By the way, I am having problems with the JavaScript link, not a span tag. I attempted the method you describe, but not until adding a non-breaking space to my last a tag did the browser render properly.
I have now placed addthis directly in the template without a macro and it does work. But only when the is in place as described above.
Hi Dwayne
Happy to hear you got it solved by placing the script in the template. I had a hard time to figure out why the </script> would be removed when placing it there...so it turns out that it does'nt :-)
/Jan
@Jan: I'm running 4.6.1. Whiich version did you experince that problem with? Are you saying the </script> tag disappeared from your page when placing it in the template?
Hi Dwayne
No I have not experienced the problem when inserting it directly in the template, but you wrote you experienced the problem when inserting it directly in your master template in a previous post. That was got me a bit puzzled - but you got it working know and that's what matters :-)
/Jan
is working on a reply...