We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    Are you using that TaggerGetTags-call inside a getResources-tpl?
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 41930
      • 13 Posts
      No it is in my blogpost template
        • 4172
        • 5,888 Posts
        If its in a template, there isn't a [[+id]] - placeholder, normally.

        In a template there is only [[*id]] for the id of the current resource.
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 41930
          • 13 Posts
          That explains when I change it to [[*id]] the tags show up!
          Can you piont me to a good explanation of placeholders?
          And is there a better alternative to tagger as I should not have this much trouble getting it working?
          How does collections compare to MIGX, do they have the same functionality? Or do you use them together?
            • 4172
            • 5,888 Posts
            this are the resource-tags (and some others)
            https://rtfm.modx.com/revolution/2.x/making-sites-with-modx/commonly-used-template-tags

            Resource-tags and TV-tags of the current resource start with
            [[*


            Placeholders can be set by snippets or plugins for example with the API-method setPlaceholder or with sending properties to a chunk with the getChunk-method.
            Each snippet has its own set of placeholders.
            Placeholders start with [[+

            They can also be injected to chunks, for example

            [[$base_template? &myplaceholder=`Test`]]


            Then you can use
            [[+myplaceholder]]
            in the chunk 'base_template'


            Regarding Tagger. Personally I use tagger, too. IMO, it is the best option for tagging resources.

            Collections are nothing else, than Resources.
            It is just another way to organize resources.
            They are shown in a nice grid instaed in the resource-tree.
            This is a good solution, if you have many resources of the same kind under one parent-resource.

            MIGX (the MIGX-TV) stores its items as one json-string into a TV-value.
            This is nice, if you need to add some items,

            • for example images with title and description
            • chunklists for the sidebar(think kind of widgets)
            • external or internal linklists

            or any other kind of small listings

            And then there is MIGXdb (included with MIGX)
            With MIGXdb you can manage records of your own custom-tables or internal MODX-tables (also resources)
            either within a TV-grid
            or
            within a Custom-Manager-Page (CMP)









              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 41930
              • 13 Posts
              I cannot see what I am doing wrong, so I will have to give up for the time being!
              • Quote from: wemyssweb at Dec 15, 2015, 07:23 PM

                Can you piont me to a good explanation of placeholders?

                This video series will give you a good overview of MODX principles like placeholder syntax: https://vimeo.com/channels/markuptomodx

                Quote from: wemyssweb at Dec 15, 2015, 07:23 PM

                And is there a better alternative to tagger as I should not have this much trouble getting it working?
                How does collections compare to MIGX, do they have the same functionality? Or do you use them together?

                It shouldn't be too much trouble to get Tagger working. If you're on the MODX Community Slack, ping me @sepiariver and I can give you some more concrete examples.

                (I guess I should probably write that blog post about Tagger as well...)
                  [sepiariver.com] (https://sepiariver.com/)
                • Collections is simply using a custom resource type as a resource container, and its children don't show in the tree.

                  MIGX is primarily for multi-field TVs.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • Quote from: sepiariver at Apr 26, 2016, 04:16 PM


                    (I guess I should probably write that blog post about Tagger as well...)

                    I am having trouble getting Tagger working as well. And honestly - should not be this hard?! The docs are lacking. Or I am getting increasingly dense in my old age. So I hope you will write a detailed tutorial soon! I am trying to achieve a list of tag links that will reload the same page (blog home page listing of post summaries), filtered on whichever tag link is clicked obviously...
                      Lucy Iannotti
                      Following Sea design & development
                      http://www.following-sea.com
                      New Bedford, MA
                      • 36549
                      • 572 Posts
                      I am having trouble getting Tagger to work too.
                      I have two container resources based on the Collections extra, one for Events and one for News. Both use the same Template and the same Tagger group.
                      On the home page Tagger is displaying correctly which displays all tags for both Events and News and each tag clicks through to display the correct filtered results.

                      On the Events and News pages all tags display in a sidebar but they only display the results for tags used in that particular container resource.
                      Either i want just the tags for that container resource to be displayed - or for all tags to be displayed and to click through to the correct results (both solutions for this would be helpful).

                      My getResources chunk for the container Template is:
                      [[!getResources?
                        &parents=`[[*id]]`
                      	&tpl=`blogit.blog_row_tpl_mod`
                      	&includeTVs=`1`
                      	&processTVs=`1`
                      	&tvPrefix=``
                      	&limit=`4`
                      	&showHidden=`1`
                      	&where=`[[!TaggerGetResourcesWhere]]`
                      ]]
                      

                      And for the taglist chunk:
                      [[!TaggerGetTags? &rowTpl=`blogit.tag_links_tpl`]]

                      If i add &resources=`[[*id]]` to the above chunk then no tags appear.

                      What am i doing wrong?

                      MODX 2.5.0
                      Tagger 1.7.0
                        www.9thwave.co.uk
                           WEB | DESIGN | PRINT