Page 1 of 1

Scriptlet Header Data

Posted: Wed Apr 15, 2009 11:16 am
by heinscott
Can anyone explain how and where the header section of the scriptlets gets rendered to the page? I need to have my metatags appear above my scripts on the source of my pages. For product and category level, I was able to fix this by changing line 483 of PageHelper.cs to

Code: Select all

page.Header.Controls.AddAt(0, new LiteralControl("\n" + catalogObject.HtmlHead));
This works fine for all my catalog objects, but, I need to have this work for my home page and other static pages as well.
Any ideas??

Thanks,

Scott

Re: Scriptlet Header Data

Posted: Wed Apr 15, 2009 11:22 am
by mazhar
It will render it self in head section of page between.

Code: Select all

<head>
...
...
</head>

Re: Scriptlet Header Data

Posted: Wed Apr 15, 2009 11:40 am
by heinscott
How does it render itself? I am trying to make that data appear BEFORE the scripts on the page, so I need to know where this rendering takes place.

Thanks

Scott

Re: Scriptlet Header Data

Posted: Thu Apr 16, 2009 8:14 am
by dadkind
Good question. We're dealing with the same problem ourselves.

I know that the PageHelper class has some logic that applies to the catalog item pages, but I was not able to find similar logic for non-catalog item pages.

Anyone?

-tomas
heinscott wrote:How does it render itself? I am trying to make that data appear BEFORE the scripts on the page, so I need to know where this rendering takes place.

Thanks

Scott

Re: Scriptlet Header Data

Posted: Thu Apr 23, 2009 1:27 pm
by heinscott
I'm going to try this again, because my boss needs me to figure out an answer to this....
Where in the AbleCommerce code or sourcecode is the "header" section of a scriptlet page added to the rendered webpage?? I need to be able to manipulate this and have my meta-tags appear at the top of my home page (as well as other static pages). Please, could I have a developer respond to this and let me know where I can find this code, so I can change the order of things to suit my needs.

Thanks,

Scott