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

    I didn’t find anything on the forum.

    I know the way to call the firsts 3 articles in one time : [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`3`!]

    but...

    Is it possible to call the firsts 3 documents (same folder) but each separately on ditto ?

    [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`FIRST DOCUMENT`!]
    [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`SECOND DOCUMENT`!]
    [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`THIRD DOCUMENT`!]

    Thanks for your help !

    Mehdi
      Scuse my english...I'm swiss
      • 16183
      • 1,390 Posts
      Not sure about this, could it be?:

      Parameters: start
      
      Purpose: Number of documents to skip in the results
      
      Options: Any number
      
      Default: 0
      


      This is from the Ditto documentation

      Or, maybe PHx could do this? Just thinking aloud smiley

      /k
        • 19036
        • 119 Posts
        Thanks a lot but perhaps can I do that easily , has anyone an idea ?
          Scuse my english...I'm swiss
          • 7231
          • 4,205 Posts
          You could do as kongondo mentioned:
          [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`1` &start=`1`!]
          [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`1` &start=`2`!]
          [!Ditto? &tpl=`your_tpl` &parents=`41` &display=`1` &start=`3`!]


          You could also simply use the &document paramater to select a specific document:
          [!Ditto? &tpl=`your_tpl` &documents=`41` &display=`1`!]
          [!Ditto? &tpl=`your_tpl` &documents=`42` &display=`1`!]
          [!Ditto? &tpl=`your_tpl` &documents=`43` &display=`1`!]
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 19036
            • 119 Posts
            Oh thanks !
              Scuse my english...I'm swiss