Creative CompulsionsCurrently Creative

Winnipeg Website Design Blog


Request a FREE Design Quote Today!







 


Contact Creative Compulsions
Phone: (001) 204.802.3487
Email: Sales
In Person:
488 Lansdowne Ave.
Winnipeg Mb.
Skype: compulsiveone
Yahoo: RiverCityCreative

Find Creative Compulsions on Facebook

View Myles O'Reilly's profile on LinkedIn

Creative Commons License

Dec 15

Creating rotating headers in XsitePro

You can get it done with tokens.

Go to Advanced header and insert the main header there, then in source view change the name of the image to a token.

{%keyword1%}.jpg

The upload all your banners to your resource manager and name them with the keyword.

Example:

  • 5 pages: home.html / about.html / links.html / terms.html / contact.html
  • 5 keywords: home / about / links / terms / contact
  • 5 banners: home.jpg / about.jpg / links.jpg / terms.jpg / contact.jpg

On home.html you put the keyword “home” as your very first keyword.
XSP (XSitePro) will take the keyword, and insert it into the token you used for the image.

Then you will have home.jpg displayed on the home page.

Quick run through, change the values as you need.

See example below, where I have three images named

My first three keywords are

  • XSitePro
  • wordpress
  • creative

In the source of this page, I added three images with the token tags

  • {%keyword1%}.png
  • {%keyword2%}.png
  • {%keyword3%}.png

You can see the results of the token here.

Share and Enjoy:
  • Twitter
  • StumbleUpon
  • RSS
  • Facebook
  • Yahoo! Buzz
  • Digg
  • Google Bookmarks
  • Technorati
  • LinkedIn
  • del.icio.us
  • BlinkList
  • blogmarks
  • Live
  • NewsVine
  • Reddit
  • Slashdot
  • SphereIt
  • Print
  • email
  • Yahoo! Bookmarks

Related posts

1 Comment »

One Response to “Creating rotating headers in XsitePro”

  1. » How to create rotating headers in XSitePro | ShopXSitePro Blog Says:

    [...] from here ShopXSitePro – XSitePro and WordPress templatesBookmark and Share This Page | « CloseSave [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CommentLuv Enabled