Where to put <head> related data?

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
evanb@firefold.com
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 36
Joined: Mon Jul 21, 2008 3:45 pm

Where to put <head> related data?

Post by evanb@firefold.com » Tue Aug 19, 2008 6:37 am

I'm unsure of what master file controls what meta tags, stylesheets, and/or scripts I want to load with every page. Can I be pointed in the right direction? :)

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Where to put <head> related data?

Post by jmestep » Tue Aug 19, 2008 8:15 am

It's a complicated question with a complicated answer. Some of the stuff is in a page like product.aspx, some of it is in the App_Data/scriplets folder, some of it is in App_Code folder, like PageHelper.cs. I think some of it is in the source code also.
Hope this helps.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

evanb@firefold.com
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 36
Joined: Mon Jul 21, 2008 3:45 pm

Re: Where to put <head> related data?

Post by evanb@firefold.com » Tue Aug 19, 2008 8:34 am

Thank you, I did open the pagehelper.cs file and it does show some code for <script> information but unfortunately I'm still a little stumped. Far as I can tell Able loads the stylesheets automatically based on what is in your themes folder, which is fine, but I'm more concerned with having a script load as well with every page. Which seems a little more difficult to find.

User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Re: Where to put <head> related data?

Post by BryanWarmoth » Tue Aug 19, 2008 10:19 am

You should try using the Scriptlet master page (/Layouts/Scriptlet.master). I have put all my scripts and extra style sheets in that header. It seems to work on every page I've worked with so far.
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

evanb@firefold.com
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 36
Joined: Mon Jul 21, 2008 3:45 pm

Re: Where to put <head> related data?

Post by evanb@firefold.com » Tue Aug 19, 2008 10:26 am

Thank you Bryan, I had not thought of that but it works!

User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Re: Where to put <head> related data?

Post by BryanWarmoth » Tue Aug 19, 2008 10:27 am

No problem. Happy coding!
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

Post Reply