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

    is it possible to sort a ditto call with a link from another page? -> sorry for my English!

    I’ll try to explain it laugh
    There is a document/folder with a ditto call and many child documents. This ditto call shows a table with different information (introtext, tvValueX, tvValueY, ...).

    Output example table:
    [table]
    [tr]
    [td][+tvName1+] [/td]
    [td][+introtext+] [/td]
    [td][+tvName2+] [/td]
    [td][+tvName3+] [/td]
    [/tr]
    [tr]
    [td]Value tvName1 [/td]
    [td]Some introtext [/td]
    [td]Value tvName2 [/td]
    [td]Value tvName3 [/td]
    [/tr]
    [tr]
    [td]...[/td]
    [td]...[/td]
    [td]...[/td]
    [td]...[/td]
    [/tr]
    [/table]

    I would like to add a link to the table head for tvName1 and tell ditto to sort the output table by tvName1, like www.domain.com/index.php?id=1&sortBy=tvName1

    Is this possible with Ditto? I’ve searched a lot, but couldn’t find any helpful.

      • 18397
      • 3,250 Posts
      Yes, in Ditto 2 you can use &extenders=`request` and the make your table headings link to ditto_sortBy=`field`. Also, Ditto 2 does not require tv prefixes.