Announcement

Collapse
No announcement yet.

Section Image on Section page

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

    Section Image on Section page

    Hi all,
    just started trialling Actinic, I have successfully imported products including many duplicates into different sections - no problem. I tried adding a section image to a few products on import, it works OK and the image shows up against the text in the list/index page for the parent section, however I would also like the same image to show in the header of that section page.

    Seems pretty standard requirement to me, show a list of section text & images in a section index (this works OK), click on one section and on the target web page the header shows the selected section name & image (ideally a better res image than the prev page), but by default it seems this only shows the section name as header text & no image....).

    I can't see how to make the web page header show the section image as well as the text, any help would be greatly appreciated... ...normally I don't ask for help but I guess I'm particularly stupid right now... .. apologies if answer is obvious!!

    Thanks,

    Lol.

    #2
    Hi again,

    I think I worked it out after more searching and reading - I changed the layout code for 'Section Page with Section name at top' to add the 'SectionImageFilename' as an image like this;

    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e%20%3d%3d%20False%29" >
    <h1><actinic:variable name="SectionName" /></h1><img src="<actinic:variable name="SectionImageFileName" />"/>
    <div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%201%29%20OR%20%28%3cactinic%3avariable%20name%3d%22IsHotLinkListOmitted%22%20%2f%3e%20%3d%3d%20FALSE%29">
    <actinic:variable name="ParentSectionListTop" />
    </actinic:block>
    </actinic:block>

    Needs some tidying to;
    - show image on same line as heading text, but right-aligned - probably need a table for that
    - don't show image if there isn't one, or rather if it is the default section image - guess that needs an if statement.

    This forum is a great resource, even if you can't find your exact question you will probably find some pointers to how to do it, like I did (unless of course I've done it totally wrong...).

    Cheers,

    Lol.

    Comment

    Working...
    X