Announcement

Collapse
No announcement yet.

Next/Previous links

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

    Next/Previous links

    We have our site setup as product per section and are using the Next/Previous links very successfully (well on the test site) to navigate between products. However, in some section pages (as in sections that display products) we also have a section that leads into another section of products i.e
    • Section
    • Product
    • Product
    • Product
    • Section
    • Product
    • Product
    • Product
    So, some next links actually point to a section page as opposed to a product page. Is there any way to stop the section that is in the next level down from displaying in the Next/Previous links?

    David
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    #2
    I've found a fairly rough and ready way to do this.

    If you know the name of the sections that you don't want to appear in the lists then all you need to do is edit the 'Link to Next Section' layout, and put a condition around the link that says

    (<actinic:variable name="SectionNameNext" /> != "Stationery") OR (<actinic:variable name="SectionNameNext" /> != "Corn Plasters") OR ... etc. etc.

    I.e. include in the condition the names of all the sections you want hidden in the list.

    Comment

    Working...
    X