Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Aug 30, 2012 @ 15:31
    dominik
    0

    Template double quotes issue

    I am trying to  set an href in my masterpage:

    href="/<umbraco:Item field="#language_url" runat="server"></umbraco:Item>/news-events/rss.aspx "

    This is working but it is shown red in the template editor because doublequotes are used twice.

    Also i am not able to use the "create nice source code" option in VS2010 any more because the quotes are not closed correct.
    If I try to use single quotes the URL will be escaped.

  • Sean Mooney 131 posts 158 karma points c-trib
    Aug 30, 2012 @ 17:03
    Sean Mooney
    0

    You should be able to use single quotes for the umbraco:Item

    href="/<umbraco:Item field='#language_url' runat='server' />/news-events/rss.aspx "

  • dominik 711 posts 733 karma points
    Aug 31, 2012 @ 08:42
    dominik
    0

    HI Sean,

    If i do so within the source code the url is shown as "/&lt;umbraco:Item field=&#39;#language_url&#39; runat=&#39;server&#39; />"

    So it seems that i am not able to use single quotes there

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies