Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
have you tried?
<umbraco:Item field="title" textIfEmpty="#SEO_Title" runat="server"></umbraco:Item>
I am sure i remember something about the square brackets
Yes and it unfortunately doesn't work :/
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
have you tried?
<umbraco:Item field="title" textIfEmpty="#SEO_Title" runat="server"></umbraco:Item>
I am sure i remember something about the square brackets
Yes and it unfortunately doesn't work :/
is working on a reply...