I am very new to .net with Sitcom and hanging it gradually. But I am stumped because what I have read in the forums and seems to go against cycling documentation. I'm just trying to add fields in the properties of the html tag. For example, I found it in the sublayout file.
& gt; Title & gt; & Lt;% = Sitecore.Context.Item ["Page Title"]% & gt; & Lt; / Title & gt; & Lt; Meta name = "description" content = '& lt;% = Sitecore.Context.Item ["description"]% & gt; / & Gt; The result of the preview is as follows.
& lt; Title & gt; Inputed page title & lt; / Title & gt; & Lt; Meta name = "description" content = "& lt;% = Sitecore.Context.Item [" description "]% & gt;" / & Gt; P>
First of all, if it's actually happening That you have described here, this is an asp.net parsing error and nothing to do with sitcom.
Checking Whiteness # 1: Is This All Code Really? Do not have runat = "server" attribute on your meta tag? Because it can definitely cause such a problem.
If not, then it should not be ... but ... I sometimes make it more reliable to use this construct:
& Lt; Meta name = "description" content = & lt;% = "\" "+ cccore resource. [" Description "] +" \ ""% " / & Gt; Kind of kind, but can work here. Or try single quotes around tags Generally, if you have any & lt; %% & gt; The tag in your HTML output, is something seriously wrong.
Comments
Post a Comment