We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50923
    • 137 Posts
    I am trying to use Tagger addon

    https://docs.modx.com/extras/revo/tagger

    I can create new Groups, define new tags, but i dont see example how to create menu with wayfinder to display all posts with that tags.

    Here is what i have

    Groups
    1. Pokloni

    Tags
    1.Kuhinja
    2. Porodicni


    When i try like this www.example/pokloni/kuhinja/

    I am back on home page, because i dont have 404?

    How to create resource and menu that will list all post based on tags, what resource to use, how to tell tagger what template to use?



      <a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>
      • 50923
      • 137 Posts
      On page I am using like this

      [[pdoResources?
          &depth=`2`
          &where=`[[!TaggerGetResourcesWhere]]` 
          &tpl=`tags` 
          &limit=`5` 
          &includeContent=`1`]]


      I got no results, but when i try like this

      [[!TaggerGetResourcesWhere]]


      I got this

      ["EXISTS (SELECT 1 FROM `modx_tagger_tag_resources` r WHERE r.tag IN (2) AND r.resource = modResource.id)"] 
        <a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>
        • 37105
        • 194 Posts
        When calling the snippet TaggerGetResourcesWhere it returns only the query and don't show results of that query. I believe you have to pass parameters to the snippet call like &tags for the querying resources having these tags or &groups for querying resources having tags existing in that group. When no parameters passed to snippet it will fetch tags passed in the URL with GET.

        To create a menu with pdoTools maybe the snippet pdoMenu is a better and cleaner way to create menus. See https://docs.modx.pro/en/components/pdotools/snippets/pdomenu

        how to tell tagger what template to use
        As far as I know the template to use by Tagger has been set in the properties of the group you created in Tagger.

        I am back on home page, because i dont have 404?
        This is the default setting. If you want a real 404 page to show just create a resource and set the key error_page in your system settings pointing to this resource.
          Codeplaza Webdesign: for professional websites at low cost