Announcement

Collapse
No announcement yet.

3 issues which makes EspoCRM the rock bottom perfect system

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #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.

    Comment


    • #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


      • #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.

        Comment


        • #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


          • #20
            Try to add % to search query
            %hello word

            Comment


            • #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


              • #22
                Should be merged into

                data/cache/application/metadata.php

                The place where this is used: application/Espo/Core/SelectManagers/Base.php Method getTextFilterFields

                Comment


                • #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


                  • #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.


                    Comment


                    • #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


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

                        Comment


                        • #27
                          Maybe.

                          You can debug.

                          application/Espo/Core/SelectManagers/Base.php

                          getTextFilterFields method.

                          Comment


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

                            Comment


                            • #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


                              • #30

                                hmm, try addressCity

                                Comment

                                Working...
                                X