Change the page header dynamically

General ShopSite user discussion

Change the page header dynamically

Postby VinceS » Wed Dec 16, 2009 9:23 am

We are predominantly boating supplies but also have a Home & Garden section and will be adding an Outdoor/Camping section. I'd like the page header to be more appropriate for each section ie boats in the Marine section, flowers in the Home & Garden section etc.

I use an image background and HTML text in an include to create my header.
This is in Page Header and Footer section for header
<!--#include virtual="/pages/newnavbar.html"-->

I thought I could use Page Field 1 as a department indicator and then place code in the header HTML include to change the image background according to the value in Product Field 1. I'm just not sure that Product Field 1 is reference-able from the included HTML.

Suggestions?
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

Postby loren_d_c » Wed Dec 16, 2009 11:12 am

Your SSI include won't be able to pull contents of the Field 1 from the ShopSite database, however in your custom page template you could use [-- PAGE.Field1 --] to define a CSS style or populate a JavaScript variable that your SSI include could reference.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 29 guests

cron