We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • As i had same issue, I made changes on snippet version 1.3.1 and pulled request to author.
    The changes is here: taggergetresourceswhere.snippet.php
    It supports &tags query key (when tagger.tag_key setting is set to "tags" or left default):
    http://www.mysite.it/myblog/&tags=Tag1,Tag2

    Note: when &tags exists, other query tags (named by tagger groups aliases) will be ignored!
      God loves me. 【ツ】


      MODX.ir (Persian Support)

      Boplo.ir/modx/ (Persian)
      • 9342
      • 50 Posts
      Hi,

      I wonder that is there any way that I can show the current selecting tag in the auto-generated page. For example I have blog page with tags (news/events/articles) and when showing on auto-generated page such as
      www.example.com/blog/type/news
      I'll be able to show "News" in the heading. Thanks.
        • 36996
        • 211 Posts
        I think you need a custom snippet for that.
        You get the $_GET['tags'] value, and output it directly or to a placeholder.
          • 9342
          • 50 Posts
          Quote from: nir-z at Sep 11, 2014, 05:17 AM
          I think you need a custom snippet for that.
          You get the $_GET['tags'] value, and output it directly or to a placeholder.

          Yes I think that should be the way to get it, but I don't know how to write snippet. I've tried using fastField by calling
          [[!#get.tag]] or [[!#get.tags]]
          but didn't work.
            • 36996
            • 211 Posts
            This should work:

             <?php
                if(isset($_GET['tags']){
                    $output = (string)$_GET['tags'];
                }
                return $output;
            


            It's not very secure, You can check the value against a white list of your tags to improve.

            EDIT:

            It's probably better to user taggerGetTags like this:

            [[TaggerGetTags? &resources=`[[*id]]`]]
            
              • 9342
              • 50 Posts
              Thanks Nir Zohar for your help, but none of them work for me.

              <?php
                 if(isset($_GET['tags']){
                     $output = (string)$_GET['tags'];
                 }
                 return $output;


              Returns the error.

              And the [[TaggerGetTags? &resources=`[[*id]]`]] will return all of the tags (not the one showing in the dynamic page).
                • 36996
                • 211 Posts
                Fixed that:
                <?php
                   if(isset($_GET['tags'])){
                       $output = (string)$_GET['tags'];
                   }
                   return $output;
                


                I tested and it works now.

                PS - call the snippet uncached [[!Mysnippet]]
                  • 49710
                  • 92 Posts
                  Hi,

                  I habe a problem with tagger:
                  I can't figure out what I have do to to get a list of all Tags. When I click on a tag I want a new Site with Links (of resources) that belongs to that specific tag.