Announcement

Collapse
No announcement yet.

Image page titles

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

    Image page titles

    I am wanting to use a differant image for eah page title like this

    http://www.wheelsntyres.co.uk/displa...log/Books.html

    but now that i have made the edit the image appears on every page as the title .
    I know how to fix this back so that it shows the page and product text page titles but what i am looking for is to be able to use a differant title image for each page, does anyone have any idea if this can be done or not?

    thanks.

    #2
    Would create a new variable called say titleimage which can be adjusted at site and section level.

    Assign it with the default image you want at the top level, then within the sections assign its property to the image you want shown from that level onwards.

    So, working on the idea of creating a new variable which is filename, upload enabled and used in site and section, the code in the template would be something like:

    <img src="<actinic:variable name="titleimage" />"

    You can extend this to use a custom ALT tag as well like:

    <img src="<actinic:variable name="titleimage" />" alt="<actinic:variable name="titleimageAltText" />">

    Assign the additional variable as text of course, or extend further..

    <actinic:block if="%28%3cactinic%3avariable%20name%3d%titleimage%22%20%2f%3e%20%20%21%3d%20%22%22%20%29" >
    <img src="<actinic:variable name="titleimage" />" alt="<actinic:variable name="titleimageAltText" />"></actinic:block>

    Which should only show the image if you have populated it with a filename it can use, or if it is not populated, then dont show anything, including broken image

    Should do anyway....

    Comment


      #3
      thanks for that it works a treat very helpfull

      Comment


        #4
        No worries.

        Conditions can be used to very good effect to add some pretty near effects given enough lateral thinking

        Comment

        Working...
        X