We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42463
    • 5 Posts
    Hi

    I'm trying to automatically generate a navigation page based on the sub pages of a folder

    By using [[!Wayfinder? &startId=`2` &level=`1`]] it displays the ul

    What i am trying to is output something like

    <div class="docBody229Header"><h2>[[*menutitle]]</h2></div>
    <div class="docBody229">[[*description]]</div>

    by using [[!Wayfinder? &startId=`2` &level=`1` &rowTpl=`navInner`]] with navInner the above code, it just outputs the containing folder rather than the sub pages

    Am i mis understanding what wayfinder can do and instead have to figure out my styling a UL or is this possible and i am just missing something really silly

    Thanks
    Ben
      • 4172
      • 5,888 Posts
      I think you would be better to use getResources here:

      [[getResources? &parents=`2` &tpl=`navInner`]]


      and use the placeholders-tag:
      [[+
      , not the Resource-field/TV-tag:
      [[*
      inside tpl-chunks
      the tpl-chunk would look like this:

      <div class="docBody229Header"><h2>[[+menutitle]]</h2></div>
      <div class="docBody229">[[+description]]</div>

        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 42463
        • 5 Posts
        Perfect that works a treat. How do it get the links for each one ?
          • 42463
          • 5 Posts
          Found it, just incase anyone else has this issue

          <a href="[[~[[+id]]]]"> link </a>