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

    I hope someone can help.

    I am using ditto to show a list of result based on tags.

    The following call works just fine:

    [[Ditto?parents=`140` &depth=`0` &display=`all` &tpl=`DittoResourcesTemplate` &tagDelimiter=`;` &tagData=`tvResourceTags` &tagMode=`onlyAllTags` &tags=`Teacher; Agriculture` ]]

    This call makes a search for all page tagged with Teacher and Agriculture.

    However instead of hard coding the tags in the ditto call, I want to put the call in a chunk and use variables assigned to the current page for filtering. So I will like to use &tags=`[*tvResourceTags*]` instead of the hard coded version above. The filtering page will have the variables assigned to it e.g. Teacher and Agriculture

    My complete ditto chunk should look something like this:
    [[Ditto?parents=`140` &depth=`0` &display=`all` &tpl=`DittoResourcesTemplate` &tagDelimiter=`;` &tagData=`tvResourceTags` &tagMode=`onlyAllTags` &tags=`[*tvResourceTags*]` ]]

    But I cannot make it work, I only get the "No documents found." message. I think I am no using the proper syntax. Any help will be very appreciated.

    Thanks
    Sebastian