Hi - does anyone know how to check if a sub section is the first or last sub section within a section?
Announcement
Collapse
No announcement yet.
Can I check if a sub section is the first or last sub within a section
Collapse
X
-
Caution if using ListCount. See http://community.actinic.com/showthread.php?p=215752 for a bug report. This refers to Product lists but check you're getting expected behaviour in Section lists.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Another technique that might work is to use variables SectionNamePrev and SectionNameNext. They're null if on the first or last sibling-level Sections respectively.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Cheers Norman - that is even a better solution for what I want to do.
Has anybody else had the same same issue when SectionNamePrev and SectionNameNext are null when displayed in IE6. Instead of linking to the present page it links through to the previous level.
e.g. on this page: http://http://www.seasaltcornwall.co..._cochineal.php
on IE6 the previous link links to http://www.seasaltcornwall.co.uk/acatalog/ yet on other browsers it links to http://www.seasaltcornwall.co.uk/aca..._cochineal.php correctly.Regards
David
Comment
-
It fails on IE7 too - as expected since Actinic generates static HTML.
You have
Code:<a href="">< previous</a> || <a href="hearsay_tee_shirt_teal.php">next ></a>
E.g. (pseudo code).
Code:block if=SectionNamePrev != "" <a href="SectionNamePrev">Prev</a> || /block
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
Comment