Announcement

Collapse
No announcement yet.

Different Banner on each page same layout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Different Banner on each page same layout

    im trying to make it so the banner changes for each page you are on, I want it so that when you are on url 1 the banner is banner1.jpg and if I you are on url 2 the banner is banner2.jpg, however I want all pages to keep useing the same layout.

    is theres some kind of javascript that could do somthing like:
    if (url=http://www.url1.com) {
    banner = '../images/banner1.jpg'
    }

    if anyone knows a peice of code that could make this happen please post below
    www.simonstaton.co.uk

    #2
    Si I'm pretty sure this has been mentioned on the forum before. It will involve blocks.

    Do some searching and if you still haven't found it by tonight, read Gabe's blocks tutorials and you'll probably be able to put something together.

    Army Gore-tex
    Winter Climbing Mitts
    webD's Blog: Website design, SEO and other ramblings…
    Twitter LinkedIN

    If you think a post is good, rate it!

    Find the answers in the Knowledge Base | Have you read the User Guides

    Comment


      #3
      ive already had a look at gabes block tutorial and understand blocks well now, and ive checked on the forums. however you have just sparked somthing off in my head.

      I could make a filename variable and make it appear on each section then go to the section and change the header image and then in the code where the banner is appearing simply add the variable, then if I set the variable to use parent in the trampolines page all trampoline products will also include this banner. I always seem to go the complicated way around things
      www.simonstaton.co.uk

      Comment


        #4
        if that dosnt work you could also add a peice of php like

        $picture = headervariable;

        <IMG SRC="<?php $picture ?>.jpg">
        www.simonstaton.co.uk

        Comment


          #5
          You canset this up with a section based variable as you mentioned with blockifs - you shouldn't need to use any php to do this.

          Comment

          Working...
          X