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
Currently I have this:
<title><umbraco:Item field="pageTitle" useIfEmpty="pageName" runat="server" /></title>
I want to prepend some text to the useIfEmpty value. Is this possible?
Try this:
<title><umbraco:Item field="pageTitle" useIfEmpty="pageName" insertTextBefore=" - " runat="server" /></title>
Jeroen
Won't that insert the text before the field value also?
I only want to insert text before, if the useIfEmpty field is used.
Hmm only if useIfEmpty is used... Don't think that is possible. You'll probably need to do use some XSLT or Razor for this.
A quick bit of Razor did the trick ;)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
useIfEmpty question
Currently I have this:
<title><umbraco:Item field="pageTitle" useIfEmpty="pageName" runat="server" /></title>
I want to prepend some text to the useIfEmpty value. Is this possible?
Try this:
Jeroen
Won't that insert the text before the field value also?
I only want to insert text before, if the useIfEmpty field is used.
Hmm only if useIfEmpty is used... Don't think that is possible. You'll probably need to do use some XSLT or Razor for this.
Jeroen
A quick bit of Razor did the trick ;)
is working on a reply...