We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29635
    • 361 Posts
    This is an auto-generated support/comment thread for GrandchildIDs.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Full Description:
    Returns a comma separated list of the current document’s most recent grandchildren. One grandchild ID is returned per child.

    You have a directory structure like this:
    Comics
    -- Calvin & Hobbes
    ---- 2007.02.18
    ---- 2007.02.19
    ---- 2007.02.20
    ---- 2007.02.21
    -- Get Fuzzy
    ---- 2007.02.18
    ---- 2007.02.19
    ---- 2007.02.20
    ---- 2007.02.21
    -- Dilbert
    ---- 2007.02.18
    ---- 2007.02.19
    ---- 2007.02.20
    ---- 2007.02.21

    You want to use Ditto to display the most recent comic from each folder.
    So you’d use [!Ditto? &documents=`[[GrandchildIDs]]` &etc...
    And viola! Ditto now displays the most recent comic from each container.
      Need MODx Ecommerce? Try FoxyCart!
      • 14281
      • 120 Posts
      Thanks Brett! This came in really handy on one of my recent projects.