Page 1 of 1

Product & Category HTML Head Code

Posted: Thu May 07, 2009 9:41 am
by mwolf
I'm trying to figure out where in the code it pulls out the 'HTML Head' code set in the admin for products & categories.

In PageHelper.cs I found this:

Code: Select all

    public static void BindMetaTags(Page page, ICatalogable catalogObject)
    {
        if (catalogObject != null)
        {
            page.Header.Controls.Add(new LiteralControl(catalogObject.HtmlHead));
        }
    }
Where is catalogObject.HtmlHead created?

Re: Product & Category HTML Head Code

Posted: Thu May 07, 2009 9:52 am
by mazhar
Catalog object could be of four types Product, Category, WebPage and Link. Basically locate the call to PageHelper.BindMetaTags function and check what is being sent to this function.