Scriptlet Header Data

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Scriptlet Header Data

Post by heinscott » Wed Apr 15, 2009 11:16 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Scriptlet Header Data

Post by mazhar » Wed Apr 15, 2009 11:22 am

It will render it self in head section of page between.

Code: Select all

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

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: Scriptlet Header Data

Post by heinscott » Wed Apr 15, 2009 11:40 am

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

dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Re: Scriptlet Header Data

Post by dadkind » Thu Apr 16, 2009 8:14 am

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

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: Scriptlet Header Data

Post by heinscott » Thu Apr 23, 2009 1:27 pm

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

Post Reply