Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels Kristiansen 166 posts 382 karma points
    Jul 05, 2011 @ 11:08
    Niels Kristiansen
    0

    Google Plus One, AddThis and Master Pages

    Hi Umbracians,

    I have tried a very simple task, to insert the "new" Google Plus One into my Master page. But Umbraco don't like the following code:

    <a class="addthis_button_google_plusone" g:plusone:size="medium" g:plusone:count="false"/>

    It gives me an Parser Error: The string 'g:plusone:size' contains too many device filters. There can be only one.

    But I need place the g:plusone:size code in the Master page, so is it even possible? I have tried the same with the fb:codes, and got the same error.

    Hope someone can help me out on this one :)

     

    Kind regards,

    Niels

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jul 05, 2011 @ 11:12
    Kim Andersen
    0

    Hi Niels

    Have you tried saving the master template from outside of the editor in Umbraco? Maybe this could be a work around if the editor in the back office are complaining about the code.

    /Kim A

  • Niels Kristiansen 166 posts 382 karma points
    Jul 05, 2011 @ 11:15
    Niels Kristiansen
    0

    Hi Kim,

    I haven't tried to save it from outside of the editor.

    But there is no problem in saving it from the back office, it's when I render the page itself it gives me the error.

    /Niels

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jul 05, 2011 @ 20:43
    Kim Andersen
    0

    Ohh my bad. I thought that it was the edtor that gave the error.

    Hmm... One way that you for sure could fix this is to create a xslt macro and put the link in here. Maybe you'd have to put the link in CDATA, but I'm pretty sure this would fix your problem :)

    /Kim A

  • Jinesh 33 posts 52 karma points
    Sep 27, 2011 @ 07:45
    Jinesh
    0

    Hi Kim,

     

    I m new to umbraco, Can you please post an example of how can we get Addthis working with umbraco ....

     

    waiting for reply.

     

    Regards,

    Jinesh

     

Please Sign in or register to post replies

Write your reply to:

Draft