Copied to clipboard

Flag this post as spam?

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


  • Smeets Vincent 3 posts 23 karma points
    May 30, 2012 @ 17:58
    Smeets Vincent
    0

    Using a dictionaryItem in a an Umbraco PageField as altText. [4.7.1]

    Hello everyone,

    I would like to use a dictionary item when a specified document field is missing or empty.

    Before using any XSLT, I'll like to know if it's possible to do it in a single umbraco:Item line like this :


    <title>

    <umbraco:Item field="title" textIfEmpty="[#SEO_Title]" runat="server"></umbraco:Item>

    </title>

    doesn't work and inserting <umbraco:Item field="#SEO_Title" runat="server"></umbraco:Item> in the textIfEmpty attribute failed too.

    I almost certain I saw this trick in an umbraco.Tv but i can't find it again.

    Thanks for your advices.

  • JohnC 37 posts 61 karma points
    May 30, 2012 @ 18:02
    JohnC
    0

    have you tried?

    <umbraco:Item field="title" textIfEmpty="#SEO_Title" runat="server"></umbraco:Item>

     

    I am sure i remember something about the square brackets

  • Smeets Vincent 3 posts 23 karma points
    May 31, 2012 @ 09:34
    Smeets Vincent
    0

    Yes and it unfortunately doesn't work :/

  • 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