Options Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • caffeine
    Member
    • Aug 2014
    • 48

    Options Page

    Hi Yuri, it's possible to add a options page to the admin? Can you point me to the right direction.

    Thanks
  • yuri
    Member
    • Mar 2014
    • 8627

    #2
    Hi

    What do you mean? There is an ability to modify options of enum fields in Field Manager.
    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

    • caffeine
      Member
      • Aug 2014
      • 48

      #3
      Sorry if my explanation is confusing, I'm looking to create a blank admin page where I can store options for my custom module, something like /#Admin/settings

      Comment

      • yuri
        Member
        • Mar 2014
        • 8627

        #4
        1. First you need to add link to Admin panel.

        Extend https://github.com/espocrm/espocrm/b...dminPanel.json
        How to extend metadata is described here: https://github.com/espocrm/espocrm/wiki/Metadata

        Create link like: #MyAdmin/settings

        We have:
        Controller: MyAdmin
        Action :settings


        2. Create javascript controller my-admin.js here: https://github.com/espocrm/espocrm/t...rc/controllers

        3. Declare settings action there. The same way like in admin controller.

        p.s. You will need to create own layout for your Settings: https://github.com/espocrm/espocrm/t...youts/Settings
        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

        • caffeine
          Member
          • Aug 2014
          • 48

          #5
          As usually, great info! I didn't know about the new wiki, I'll take a look.

          I got it working now I just have to define the fields, I created MyAdmin.json file but doesn't work, I don't know if I need to extend the Settings.json in "application/Espo/Resources/metadata/entityDefs"

          one last question: Is possible to locate all this files in my custom module?
          Last edited by caffeine; 10-21-2014, 12:13 PM.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8627

            #6
            Possible to locate in module directory.

            You need to extend entityDefs/Settings if you want to add new fields to config.
            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

            • caffeine
              Member
              • Aug 2014
              • 48

              #7
              as always, Awesome!

              ps: You need to enable a donate button in your website.

              Comment

              • caffeine
                Member
                • Aug 2014
                • 48

                #8
                nevermind, my error
                Last edited by caffeine; 10-21-2014, 04:57 PM.

                Comment

                Working...