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

    From the sample site, the blog uses:

    [[!getResourcesTag@BlogList]]

    I’ve had a look at the getresources documentation and can’t see examples of this style of call or what therefore it might mean (and be customised). I’m sure I’m missing something obvious, so if someone could point me to some documentation that would be great.

    It might also be useful to tuck a bit of documentation of this feature into the sample site.

    Very much enjoying Revolution - well done folks!

    Cheers

    Jim
      • 28215
      • 4,149 Posts
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 22019
        • 390 Posts
        That property set doesn’t appear to exist, and the sample site blog index page doesn’t display any posts as a result.

        The method described in the Case Study (http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution ) works:

        [[!getResourcesTag?
        &elementClass=`modSnippet`
        &element=`getResources`

        etc etc, but I don’t understand why - is this somehow extending the getResources snippet on the fly?
          Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
          • 37514
          • 178 Posts
          Quote from: odeclas at Aug 31, 2010, 08:40 AM

          That property set doesn’t appear to exist, and the sample site blog index page doesn’t display any posts as a result.

          The method described in the Case Study (http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution ) works:

          [[!getResourcesTag?
          &elementClass=`modSnippet`
          &element=`getResources`

          etc etc, but I don’t understand why - is this somehow extending the getResources snippet on the fly?


          I think this was a bug in the sample site implementaton, which I am fairly sure is being sorted out. The bugs are listed here:

          http://github.com/splittingred/MODxSampleSite/issues
            • 3177
            • 137 Posts
            I have the same question, and it’s not answered in the last reply according to me.
            Question is: Where does this getResourcesTag come from? Where is it defined?

              • 22019
              • 390 Posts
              I understand it a little better now, although I’ve forgotten the original context of my issue grin

              The getResourcesTag is an ’extender’ snippet for TagLister that is specifically designed to be used with getResources (but in tru MODx style it could _in theory_ be used by other snippets/plugins, hence the first two parts of the call, which tell it to use getResources, which is a snippet).

              The same methodology is used for getPage, to paginate result sets in a getResources call.

              Instead of listing all the properties in a call each time, you can save them as a distinct property set (to reuse). Presumably the @BlogList property set disappeared in development (or wasn’t documented and you’d have to manually recreate it).

              There’s a similar-ish thing with Wayfinder, where there is a folder full of configs that ships with the package but it’s not mentioned anywhere that I can see - and can presumably be called with the property &config= and matching one of the config sets in the folder (which I think is a file-based way of doing property sets - but someone will correct me if I’m wrong).
                Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
                • 3177
                • 137 Posts

                Ok, I understand now that getResourcesTag has to be found in the package Taglister.

                But, with the risk of this Topic becoming a general Revolution-for-dummies topci, the call is to "getRousourcesTag", then I expect to see this snippet-definition in the list of Snippets in the Elements. But, it’s not there !! ... huh



                  • 37514
                  • 178 Posts
                  Quote from: bertcatsburg at Dec 06, 2010, 10:36 AM


                  Ok, I understand now that getResourcesTag has to be found in the package Taglister.

                  But, with the risk of this Topic becoming a general Revolution-for-dummies topci, the call is to "getRousourcesTag", then I expect to see this snippet-definition in the list of Snippets in the Elements. But, it’s not there !! ... huh


                  If you’ve installed taglister, it is at elements> snippets > taglister > getresourcestag
                    • 3177
                    • 137 Posts
                    But I have an installation of MODX, made by somebody else, which does have a call to getResourcesTag and there I do not see the taglister.
                    That seems strange to me.