I need to check if the editor has put any content in this field <umbraco:Item field="umbracoDidYouKnow" runat="server"></umbraco:Item> which is a simple textstring. What is the syntax for doing this?
I am new to Umbraco and .net in general so i haven't been able to find the right syntax despite vigorous googling.
Checking if item is empty in master template
Version: Umbraco v 4.0.2.1
I need to check if the editor has put any content in this field <umbraco:Item field="umbracoDidYouKnow" runat="server"></umbraco:Item> which is a simple textstring. What is the syntax for doing this?
I am new to Umbraco and .net in general so i haven't been able to find the right syntax despite vigorous googling.
To clarify:
if umbracoDidYouKnow = "" then
<div id="content">
else
<div id="contentWide">
end if
Id use an xslt macro for this. if the umbracoDidYouKnow is on the current page, this should work:
dsa
oh, should mention: If you're brand new this may help -> http://umbraco.org/documentation/books/xslt-basics/what-is-xslt
Post back if you continue to have difficulties, and someone should be able to help you out.
Dan
Thanks for the quick replies
is working on a reply...