Announcement

Collapse
No announcement yet.

Changing Image on Each Section

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

    Changing Image on Each Section

    Just wondering if this is even possible using actinic templates ??

    I'm just re-designing my website and I'm looking at changing the image for each product depending on the section.

    For example, I want a picture of a dog above the product on the product eg
    https://www.thearkpetshop.com/index....id=iams_uk_ltd

    Then for the cat page an image of a cat
    https://www.thearkpetshop.com/index....r=Toys&pid=148

    ...and so on

    Also is it possible to change the colour in each section ?

    Not sure if anyone even understands what I'm trying to do, so please ask away...
    For Everyday Pet Products
    www.pet-bliss.com

    For Doggy Bling and Clothes
    www.poshpaws.ie

    #2
    It's quite do-able but requires some skill.

    One way to do this would be to create a Variable called, say, "SectionType" settable at Section level that contains a set of choices (misc, dogs, cats, fish, etc). Set the top-level to misc. G

    Go to each top-level Sections and set as appropriate.

    You could then put some CSS around your headers like
    Code:
    <div class="sect-<actinic:variable name="SectionType" />">.......</div>
    (which will generate code like <div class="sect-dogs">.......</div> on the doggy pages)

    Now add several bits of CSS to the Actinic Stylesheet like

    .sect-misc {default CSS here}
    .sect-dogs {doggy CSS here}
    .sect-cats {cat CSS here}
    etc.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X