Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jkamyck

    (@jkamyck)

    Hmm…this web interface is a little hard to use. I am trying to obtain the following:

    Parent unordered list
    Parent list item 1
    Parent list item 2 (current page, has child pages)
    Child unordered list
    Child list item 1
    Child list item 2
    Parent list item 3
    Parent list item …

    Thread Starter jkamyck

    (@jkamyck)

    Thanks for the advice, but the suggested code only ended up listing all subpages if you were already on a subpage. If you are on a top level page, no links appear.

    I am trying to make the function recursive, with two loops…one for all top-level pages, and another one that interrupts to check for children. If there are children, the inner loop creates a list of them. The end result should look like:

    <ul>
    • Top-Level Page 1
    • <li>Top-Level Page 2 (Current Page)</li>
      <li>Current Page Child Page 1</li>
    • Current Page Child Page 2
    • </ul>
    • Top-Level Page 3
    • <li>Top-Level Page ...</li>

    In all cases, I would like the top-level pages to appear, and only the child pages for the current page. Such a seemingly simple problem is giving me quite a headache!

    Thanks to all who will offer help.

    Thread Starter jkamyck

    (@jkamyck)

    The GUI didn’t properly nest my list…I would like the list (with child pages) to appear like:

    Parent
    Parent
    >>Child
    >>Child
    Parent

Viewing 3 replies - 1 through 3 (of 3 total)