this is because you're using double quotes for both the name attribute and your umbraco field, can't be done that way. Should follow Richard's advice on his blog post
Still, the same solution should be applied..; unless you use the textBefore and textAfter options when inserting the field from the dialog (make sure to escape any html character then)
head runat="server" problem for umbraco:Item in meta tag
I am using master document type for Umbraco
there is one property called metaDescription.
I want to render MetaDescription as following
<meta name="description" content="" />
I have tried following
<meta name="description" content="<umbraco:Item field='metaDescription' runat='server'></umbraco:Item>" />
its not working for me it render following
<meta name="description" content="<umbraco:Item field='metaDescription' runat='server'></umbraco:Item>" />
if I remove runat="server" attribute from head tag than its working fine.
any solution please..
Thanking you in advanced
tushar,
this is because you're using double quotes for both the name attribute and your umbraco field, can't be done that way. Should follow Richard's advice on his blog post
Cheers,
/Dirk
Thanks Dirk for quick reply but for name attribute I have used double quates but not for umbraco field.
content="<umbraco:Item field='metaDescription' runat='server'></umbraco:Item>"
/Tushar
Still, the same solution should be applied..; unless you use the textBefore and textAfter options when inserting the field from the dialog (make sure to escape any html character then)
Cheers,
/Dirk
Thanks Dirk,
This work for me
<umbraco:Item field="metaDescription" insertTextBefore="<meta name="description" content="" insertTextAfter="" />" runat="server"></umbraco:Item>
Thanks again for your quick reply..
is working on a reply...