We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16545
    • 358 Posts
    Hi,
    can’t get one thing to work for me...:(

    Document tree
    Makers(49)
    Name Lastname1
    Name Lastname2
    ...
    ZZZ
    Goods(68)
    Category1
    Good1
    Good2
    ...
    Category2
    Good1
    Good2
    ...

    Good1,Good2... must have smth like brand from Makers. So, I’ve used the useful stuff like Quill snippet for this.

    TV [*maker*] Dropdown list menu -
    @EVAL return $modx->runSnippet("Quill",array ('parent'=>'49', 'default'=>' '));


    Makers have template with
    [!Ditto? &documents=`[*id*]` &tpl=`maker`!]


    Chunk {{maker}} with Ditto filtering that must output all goods, which were belongs to some maker.
    [[Ditto? &parents=`68` &hideFolders=`1` &depth=`3` &filter=`maker,[+pagetitle+],7` &debug=`1` ]]
    or
    [[Ditto? &parents=`68` &hideFolders=`1` &depth=`3` &filter=`maker,[+pagetitle+],1` &debug=`1` ]]


    ...and it doesn’t work.

    Evo 1.0.2 with Ditto from distribution.
    &
      • 16545
      • 358 Posts
      As always, after deep investigation I’ve found the wrong query.

      TV [*maker*] is stores the document [*id*] from selected Makers tree (Quill snippet specification).
      So, I have to change the chunk code to:

      [[Ditto? &parents=`68` &depth=`3` &hideFolders=`1` &filter=`maker,[*id*],1`]]
      


      &tpl - just skiped for testing only.