Morning Bart. Thanks for the reply!
What I didn’t mention in that original description was that I also need to only display the first topic from each bit of the sub-navigation, for a count of 4 per major heading. Erm … let me explain … so the ectual navigation typically looks like this:
Topic A Chapter 1
Topic A Chapter 2
Topic G Chapter 1
Topic G Chapter 2
Topic G Chapter 3
Major Heading …
What I actually need to do is print the Major Heading in each case, followed by up to four topic headings under each Major Heading. For example, on the homepage should appear:
Topics F and G above are direct children of the Major Heading.
… this pattern repeats for the following Major Heading and so on. The listing needs to exclude any chapters and just print the topic’s heading in each case, linked.
I’ve cracked it as I say with SSJS but if there’s a more efficient (my method is taking around 6 seconds to load the page at the moment) then I’d be grateful to hear your suggestions.