We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2989
    • 13 Posts
    Hi
    I’m in desperate need of help!

    I have this structure in my document tree:
    X
    Y
    Z
    Organisation
    - Administration
    - - Name A
    - - Name B
    - - Name C
    - IT
    - - Name A
    - - Name B
    - - Name C

    etc.
    (All Names have TVs for title, department, phone etc)

    What i want to achieve is an output, probably via Ditto if possible like the structure via markup (html)
    <h1>Admistration</h1>
    <dl>
    <dt>Name A</dt>
    <dd>TV 1</dd>
    <dd>TV 2</dd>
    <dd>xxx</dd>
    </dl>
    etc.

    Is this possible, any help and code would be appreciated smiley

    /Becher
      • 13534
      • 3 Posts
      Hmm sad

      Nobody to answer my urgent question (solution)???
      Is it possible with Wayfinder then? But without links+
        • 36404
        • 307 Posts
        hi,

        don’t know about the TVs with wayfinder but what i can say is that it’s quite easy to do the knid of structure you’re looking for with it.

        Having links or not in the output is just up to you as wayfinder will use your chunks as templates then, if you don’t output links in them there won’t be.

        Personnaly i’ve opted for the custom config file solution with wayfinder because i just find it easier to maintain all and everything in one file rather than 4 or five chunks and wayfinder call is by far shorter this way (and won’t change when you need new templates/chunks) but, whatever solution you choose, yes, it sounds possible

        have swing
          réfléchir avant d'agir
          • 15022
          • 31 Posts
          If you need to list all administrative contacts on the parent page:
          [[Ditto? &tpl=`tpl-contact-info`]]


          tpl-contact-info chunk:
          <dl>
            <dt>[+pagetitle+]</dt>
            <dd>[+tv1+]</dd>
            <dd>[+tv2+]</dd>
            <dd>[+tv...+]</dd>
          </dl>
          


          If you need to list all administrative and IT contacts on the "Organisation" page:
          <h2>Administration</h2>
          [[Ditto? &parents=`id of Administration page` &tpl=`tpl-contact-info`]]
          <h2>IT</h2>
          [[Ditto? &parents=`id of IT page` &tpl=`tpl-contact-info`]]


          I hope this is helpful.
            illegitimati non carborundum