We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39649
    • 17 Posts
    I want to setup a blog and use Tagger for tags. Tagger works great, but how do I get SimpleSearch to include the Tagger tags in searches? SimpleSearch seems to only search in standard fields and TVs. However, Tagger is not a standard field nor a TV.

    Thanks in advance.
      • 37105
      • 194 Posts
      Hi clutchmarketing,

      That is a little complicated. Tagger stores its data in custom tables like modx_tagger_groups, modx_tagger_tags en modx_tagger_tag_resources.
      So you have to point SimpleSearch to search in these tables.

      Like this example for searching the tables used by Quip
      &customPackages=`QuipComment:body:quip:{core_path}components/quip/model/:QuipComment.resource = modResource.id`
      

      See documentation on https://docs.modx.com/extras/revo/simplesearch/simplesearch.simplesearch
        Codeplaza Webdesign: for professional websites at low cost
        • 53249
        • 5 Posts
        Quote from: clutchmarketing at Jan 12, 2017, 09:21 PM
        I want to setup a blog and use Tagger for tags. Tagger works great, but how do I get SimpleSearch to include the Tagger tags in searches? SimpleSearch seems to only search in standard fields and TVs. However, Tagger is not a standard field nor a TV.

        Thanks in advance.
        Hello Clutchmarketing, I am also struggeling with simplesearch to search in tags made with Tagger. Did you find a solution for searching in the tagger tables? Greetings, Roel
          • 46580
          • 167 Posts
          Yes It's would be great !
          Tagger is one of my fav. MODX extra.
          I see this feature request has been added here :
          https://github.com/modxcms/SimpleSearch/issues/30
            MODX lover
            -
            Développeur MODX / Webdesign / Solutions web
            • 46580
            • 167 Posts
            Quote from: donquicky at Feb 20, 2017, 01:47 PM
            Hi clutchmarketing,

            That is a little complicated. Tagger stores its data in custom tables like modx_tagger_groups, modx_tagger_tags en modx_tagger_tag_resources.
            So you have to point SimpleSearch to search in these tables.

            Like this example for searching the tables used by Quip
            &customPackages=`QuipComment:body:quip:{core_path}components/quip/model/:QuipComment.resource = modResource.id`
            

            See documentation on https://docs.modx.com/extras/revo/simplesearch/simplesearch.simplesearch

            Does it means it is possible to use directly an existing installed package (e.g. Quip or Tagger) ?

            I'm trying this :

            Tagger

            className -> TaggerTagResource | taggergroup | taggergateway | tagger | taggertag

            Tagger tables :
            modx_tagger_groups
            modx_tagger_tags
            modx_tagger_tag_resources

            Should we use TaggerTagResource class ?

            Field → tag

            packageName → tagger

            packagePath → {core_path}components/tagger/model/

            joinCriteria → tagger.resource = modResource.id (?)

            Test 1
            TaggerTagResource:tag:tagger:{core_path}components/tagger/model/:TaggerTagResource.resource = modResource.id

            -> without success (I used the Tagger tag ID as search criteria in simpleSearch field) :-/

            Anyway even with the Quip exemple it doesn't work : in MODX log I have :

            (
            [0] => 42S02
            [1] => 1146
            [2] => Table 'tableName.QuipComment' doesn't exist
            )

            [ed. note: johnxx last edited this post 6 years, 2 months ago.]
              MODX lover
              -
              Développeur MODX / Webdesign / Solutions web
              • 46580
              • 167 Posts
              Quip exemple error was resolved by reading this post (start classname with lowercase) :
              https://forums.modx.com/thread/47835/simplesearch-and-custompackages?page=2


              [ed. note: johnxx last edited this post 6 years, 2 months ago.]
                MODX lover
                -
                Développeur MODX / Webdesign / Solutions web
                • 53249
                • 5 Posts
                Quote from: johnxx at Feb 12, 2018, 03:42 PM
                Quip exemple error was resolved by reading this post (start classname with lowercase) :
                https://forums.modx.com/thread/47835/simplesearch-and-custompackages?page=2


                Hello johnxx, did you get simplesarch working with tagger (with table prefix modx_)?