3 issues which makes EspoCRM the rock bottom perfect system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yuri
    Member
    • Mar 2014
    • 8467

    #16
    You need to add fields manually. Metadata path: entityDefs.{ENTITY_NAME}.collection.textFilterFiel ds
    It's a array of fields.
    Add custom/Espo/Cusom/Resources/metadata/entitiDefs/ENTITY_NAME.json
    PHP Code:
    {
      "collection": {
        "textFilterFields": ["name", "description"]
      }
    } 
    
    When you will search you will need to add % to the beginning if you need to search not from the start.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • theode
      Member
      • Jul 2014
      • 36

      #17
      what exactly does that mean?? i added a file to custom/Espo/Cusom/Resources/metadata/entityDefs/ENTITY_NAME.json to the suggested directory.? Why this is a json file and you say its php code? I'm sure I did it completely wrong. Am I right when I say its in smarty framework?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8467

        #18
        It's metadata stored in json. See application/Espo/Modules/Crm/Resources/metadata/entityDefs/Lead.json
        If you create the same in custom it will be merged in result.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • theode
          Member
          • Jul 2014
          • 36

          #19
          EspoCRM/custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json I created this file with content above and emptied cache but its still not searching description...

          Comment

          • yuri
            Member
            • Mar 2014
            • 8467

            #20
            Try to add % to search query
            %hello word
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • theode
              Member
              • Jul 2014
              • 36

              #21
              Thank you very much for your efforts.

              I tried it and it does not work...Is there a way to check if the merge is successful?

              what exactly is the difference between a Lead (Intressenten) and a Contact (Kontakte) I need the search funtion of extra fields on Contacts and not on leads.


              is there a way to "pre-install" fields in a new install (like a script or change on a file to add fields?)


              Best
              Last edited by theode; 08-04-2014, 11:22 AM.

              Comment

              • yuri
                Member
                • Mar 2014
                • 8467

                #22
                Should be merged into

                data/cache/application/metadata.php

                The place where this is used: application/Espo/Core/SelectManagers/Base.php Method getTextFilterFields
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                • theode
                  Member
                  • Jul 2014
                  • 36

                  #23
                  does not update....it has still the date from second August and did not update anything.

                  sorry to bother you but its quite important for me using it in the wild!

                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8467

                    #24
                    custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json

                    PHP Code:
                    {
                        "collection": {
                            "textFilterFields": ["name", "description"]
                        }
                    } 
                    
                    Clear Cache.

                    Just tried and it was merged into data/cache/application/metadata.php after clear cache.


                    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                    Comment

                    • theode
                      Member
                      • Jul 2014
                      • 36

                      #25
                      not sure why I can't get this to work...is there a specia lone for contacts...?
                      How to create fields which are present from the beginning?

                      Comment

                      • theode
                        Member
                        • Jul 2014
                        • 36

                        #26
                        could it be my mamp is not clearing cache correctly?
                        Last edited by theode; 08-11-2014, 08:32 PM.

                        Comment

                        • yuri
                          Member
                          • Mar 2014
                          • 8467

                          #27
                          Maybe.

                          You can debug.

                          application/Espo/Core/SelectManagers/Base.php

                          getTextFilterFields method.
                          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                          Comment

                          • theode
                            Member
                            • Jul 2014
                            • 36

                            #28
                            ok had this file there at install already...seems to be something is worng I don't know

                            Comment

                            • theode
                              Member
                              • Jul 2014
                              • 36

                              #29
                              Have in

                              /Applications/MAMP/htdocs/CRM/custom/Espo/Custom/Resources/metadata/entityDefs/Contact.json
                              and
                              /Applications/MAMP/htdocs/CRM/custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json

                              exactly this file

                              Code:
                              {
                                  "collection": {
                                      "textFilterFields": ["name", "description","address_city"]
                                  }
                              }
                              cleared cahce but is still not searching eg city.

                              Comment

                              • yuri
                                Member
                                • Mar 2014
                                • 8467

                                #30

                                hmm, try addressCity
                                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                                Comment

                                Working...