Announcement

Collapse
No announcement yet.

Options Page

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

  • Options Page

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

    Thanks

  • #2
    Hi

    What do you mean? There is an ability to modify options of enum fields in Field Manager.

    Comment


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


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

        Comment


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


          • #6
            Possible to locate in module directory.

            You need to extend entityDefs/Settings if you want to add new fields to config.

            Comment


            • #7
              as always, Awesome!

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

              Comment


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

                Comment

                Working...
                X