Page Template Examples
Page Title and Name
Page Header and Footer
Banner Graphic
Text Fields
Page Links
Product Listings
Page Layout
Complete Example

Custom Page Templates: Banner Graphic

The banner graphic is an important part of most pages, and can have a significant impact on your page design. If you are designing a template to create a specific look for just one store, your design decisions are simplified. But if you want to build flexibility into your template, you have to consider these issues:

Banner Graphic Example Page Template Resulting Page

This example uses nested IF tags to display the banner graphic centered below the header, but above the page name. The store data used for the resulting page has the page name set to not display.

Banner Graphic Tags

There are several custom template tags that you can use to produce the banner graphic. Each has its own benefits:

[-- PAGE.Graphic --]
This tag returns a fully-formatted <img> tag. It uses the image attributes set for the graphic in the Images section of Shopsite. This is the easiest tag to use, but it gives you the least amount of control over the output, which looks something like this:

<img src="http://mystore.com/media/daisys_flowers.jpg" alt="daisys_flowers.jpg">

[-- PAGE.Graphic Remove_HTML --]
This tag returns all of the image attributes as defined in the Images section of ShopSite, but without the opening <img and closing >.

src="http://mystore.com/media/daisys_flowers.jpg" alt="daisys_flowers.jpg"

Your template must supply those pieces, as well as any additional attributes.

<img [-- PAGE.Graphic Remove_HTML --] align="right" border="0">

[-- IMAGE PAGE.Graphic --]
This tag returns just the file name of the banner graphic, or the subdirectory path and file name if the image is in a media subdirectory, like this:

daisys_flowers.jpg

Your template must supply the rest of the <img> tag as well as any parameters.

<img src="media/[-- IMAGE PAGE.Graphic --]" alt="store logo" align="right" border="0">