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...
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.
Continue discussion
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...
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.