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
I have a master template which handles the page title like this
<title><asp:placeholder runat="server"><umbraco:Item field="umbracoUrlAlias" runat="server"></umbraco:Item> / <umbraco:Item runat="server" field="siteName" recursive="true" /></asp:placeholder></title>
Is there a way so that if the user has not entered anything in the umbracoUrlAlias for a page they have created that it defaults to a defined set of text?
Chees,
S
Hi Stephen,
There is an attribute called "textIfEmpty" which will do what you want:
<umbraco:Item field="umbracoUrlAlias" textIfEmpty="default text" runat="server" />
Cheers, Lee.
Lee you a star! Mucho gracias.
Stephen
De nada.
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
Default Page Title's
I have a master template which handles the page title like this
<title>
<asp:placeholder runat="server"><umbraco:Item field="umbracoUrlAlias" runat="server"></umbraco:Item> / <umbraco:Item runat="server" field="siteName" recursive="true" /></asp:placeholder>
</title>
Is there a way so that if the user has not entered anything in the umbracoUrlAlias for a page they have created that it defaults to a defined set of text?
Chees,
S
Hi Stephen,
There is an attribute called "textIfEmpty" which will do what you want:
Cheers, Lee.
Lee you a star! Mucho gracias.
Stephen
De nada.
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.