Okay how did you insert the umbraco:Item did you use the Umbraco backoffice to insert it. If the alias should be good, if not then please check that the alias of the field is correct. It requires that you have access to settings section, and the document types folder.
If it´s correct then place check the fields has a value on the page, that you are look on. The umbraco:Item is taking the value from the current page. And make sure that the page are saved and published
That what I thinking you should try to get the text of the field to show up.
Dennis I tried all and it's allright, but i did a check if an image are insert and the result was nothing inside :/ but i saved and published the page. And with an other project it's working fine but not here.
First question. Did these fields <h1><umbraco:Item field="title" runat="server" /></h1> <h3><umbraco:Item field="subtitle" runat="server" /></h3> works fine, or? If not, did you template have this in first line
Doesn't show a umbraco:Item
Hi, I'm new with umbraco.
I did this but it doesn't show the value.. anyone who knows why????
<div>
<div>
<div>
<umbraco:Item field="Text" runat="server" />
</div>
</div>
</div>
</div>
I work in local and all divs are showing, but not the umbraco item. With an other project it's working.
Hi Stefanie and welcome to our :-)
What exact version of Umbraco are you using, by knowing this, it can be easier to help.
Looking forward to hear from you.
/Dennis
Hi :) I use Umbraco v6.2.4
Hi Stefanie,
Okay how did you insert the umbraco:Item did you use the Umbraco backoffice to insert it. If the alias should be good, if not then please check that the alias of the field is correct. It requires that you have access to settings section, and the document types folder.
If it´s correct then place check the fields has a value on the page, that you are look on. The umbraco:Item is taking the value from the current page. And make sure that the page are saved and published
That what I thinking you should try to get the text of the field to show up.
Hope this helps,
/Dennis
Hi Stefanie
If what Dennis has suggested above does not work could you then please share the full code for your template?
Cheers, Jan
Dennis I tried all and it's allright, but i did a check if an image are insert and the result was nothing inside :/ but i saved and published the page. And with an other project it's working fine but not here.
I work with visual studio and the code it's :
<div <%=GetImage()%> >
<a href="#">
<div>
<div>
<h1><umbraco:Item field="title" runat="server" /></h1>
<h3><umbraco:Item field="subtitle" runat="server" /></h3>
<p class="button">
<span>
<umbraco:Item field="text" runat="server" />
</span>
</p>
</div>
</div>
</a>
</div>
Where getimage is:
public string GetImage()
{
var image = Umbraco.AssignedContentItem.GetPropertyValue<string>("image", "");
if (!string.IsNullOrEmpty(image))
{
return "style='background-image:url(" + image + ")'";
}
return "";
}
Hi Stefanie,
First question. Did these fields <h1><umbraco:Item field="title" runat="server" /></h1> <h3><umbraco:Item field="subtitle" runat="server" /></h3> works fine, or? If not, did you template have this in first line
Or did it have something like this.
Looking forward to hear from you.
/Dennis
is working on a reply...