We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3689
    • 264 Posts
    I tried putting the TV info right into the page template and also calling it with ditto.. so this is what I have

    Ditto on Page Template:
    [!Ditto? &tpl=`detailedEvent`!]

    detailedEvent chunk:
    <h3>[+eventTitle+]</h3>
    <h5>[+eventLocation+]</h5>
    <ul>
    <li>[+eventDate+]</li>
    </ul>

    nothing is displaying on the page.. says "No Document Found."




    <h3>[+eventTitle+]</h3>
    <h5>[+eventLocation+]</h5>
    <ul>
    <li>[+tveventDate+]</li>

      • 5340
      • 1,624 Posts
      That means that no documents where found inside the document you are running the snippet.

      Use &parents=`your list of ids`

      Try this
      [!Ditto? &parents=`20,30` &tpl=`detailedEvent`!]

      Replace 20, 30 with the the parent(s) of the container you want to display children for.
      Also make sure the documents are published and have the Show in menu checkbox selected.
        • 3689
        • 264 Posts
        Quote from: cipa at Sep 19, 2009, 08:58 AM

        That means that no documents where found inside the document you are running the snippet.

        Use &parents=`your list of ids`

        Try this
        [!Ditto? &parents=`20,30` &tpl=`detailedEvent`!]

        Replace 20, 30 with the the parent(s) of the container you want to display children for.
        Also make sure the documents are published and have the Show in menu checkbox selected.


        the parent would be 4 which is "Events" and then under "Events" I have multiple listings.. its listing the info now, but also all child pages under "Events"
          • 5340
          • 1,624 Posts
          Have a look at the documentation attached in this post.

          You’ll find all of your answers in there. If it’s not clear just ask.

          For the above problem have a look at the depth parameter.

            • 3689
            • 264 Posts
            I cant figure it out undecided either get No Documents Found,more than i want displayed, or blank
              • 5340
              • 1,624 Posts
              Please post your code and document structure.
                • 3689
                • 264 Posts
                +HOME
                -Events
                Event01
                Event02

                +About
                +Contact

                The bold page is where Im having problems.. I went back to ur suggestion even though its showing extra stuff its showing something!

                Ditto on Detailed Events page
                [!Ditto? &parents=`4` &depth=`2` &total=`1` &tpl=`detailedEvent`!]

                detailedEvent chunk:
                <h3>[+pagetitle+]</h3>
                <h5>[+eventLocation+]</h5>
                <ul>
                <li>[+eventDate+]</li>
                </ul>

                Looking at the code I figured out what is causing the display of both child pages.. which is the chunk since its displaying everything. I put in &total=`1` in the ditto call (it is called a call isnt it?) and it seems to have stopped displaying both events that I have, but its displaying the wrong one. How do I get the event details for the current page?
                  • 5340
                  • 1,624 Posts
                  So what do you want to achieve? What is the output you would like.
                  Are the ditto calls only for Event01 and Event02?
                  I do not understand why are you using a depth of 2 and total 1



                    • 3689
                    • 264 Posts
                    Quote from: cipa at Sep 19, 2009, 10:18 PM

                    So what do you want to achieve? What is the output you would like.
                    Are the ditto calls only for Event01 and Event02?
                    I do not understand why are you using a depth of 2 and total 1





                    Im trying to getet the current pages infot o display.. so since its on Event01 i want the Event01 info to display but its displaying the Event02s info
                      • 5340
                      • 1,624 Posts
                      Why are you using Ditto display Event01 on the Event01 page?

                      You can simply use [*yourTV*] in the template. Ditto is for creating a list of documents.

                      In your Events template remove the ditto call and enter
                      [*pagetitle*], [*eventLocation*], [*eventDate*]