Hope someone can help me with this. We have an spot on our page where a user can enter metadata and keywords and such. On most of the pages it is pulling them in, but on our product pages its not.
Thanks for the quick response.. I went ahead and did that but I am still not seeing the metdata being populated when I view the source. I went ahead and deleted the metadata content from the products page.. When looking at it closer, it comes down to the interior page:
Ok.. Then this is telling me something is seriously wrong with the website.. I went ahead and did what you said... Now my Content master page looks like this:
XSLT and Metadata
Hi There,
Hope someone can help me with this. We have an spot on our page where a user can enter metadata and keywords and such. On most of the pages it is pulling them in, but on our product pages its not.
Here is the code for the product pages:
When I roll up to the interior.master, that has the metadata in it fine.. Any help with this would be greatly appreciated.
Thanks
Remove the meta contentplaceholder in the child template.
Because you have the meta contentplaceholder in the child, it's overriding the content in the masterpage.
Child content will always override the master content within a contentplaceholder.
This is assuming you have the meta data fields in the meta contentplaceholder on the masterpage
Thanks for the quick response.. I went ahead and did that but I am still not seeing the metdata being populated when I view the source. I went ahead and deleted the metadata content from the products page.. When looking at it closer, it comes down to the interior page:
But it won't make its way down to the products page..
Move the meta data fields from instead the head contentplaceholder to just before
Leave them inside the tags of the master template; which is in the default master contentplaceholder.
They don't need to be instead a custom contentplaceholder. They will trickle down fine without a contentplaceholder.
ContentPlaceHolder 's are used only if you plan on changing the content on a child template.
I tried that, still nothing.. When I view the source they still don't show up.
Moved the two meta lines:
<umbraco:Item field="metaKeywords" insertTextBefore="<meta name="keywords" content="" insertTextAfter="" />" recursive="true" runat="server"/>
<umbraco:Item field="metaDescription" insertTextBefore="<meta name="description" content="" insertTextAfter="" />" recursive="true" runat="server"/>
Still Nothing... Can you please provide an example, its trickling down fine to the interior page, its not trickling down to the product pages.
add runat="server" to the head tag
Ok.. Then this is telling me something is seriously wrong with the website.. I went ahead and did what you said... Now my Content master page looks like this:
Its still not moving down though past the interior page.
The toplevel master template needs be wrapped inside a contentplaceholder
when i do that, my website breaks and i get this error:
Content controls are allowed only in content page that references a master page.
is working on a reply...