We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16313
    • 71 Posts
    Hello,
    is it possible to put multiple fields in one row like in attachment?
    thank you.

    This question has been answered by multiple community members. See the first response.

      • 4172
      • 5,888 Posts
      In theory, yes.
      But not out of the box, because the fields are just existing TV-input-types.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 16313
        • 71 Posts
        sad to hear that, but thank you for the answer.
        another question. how can I execute php code before or after migxdb form save? seems plugin events(OnBeforeDocFormSave, OnDocFormSave) do not work.
        P.S. Can I put multiple fields in one row in migxdb or the same issue?
        thank you.
        • discuss.answer
          • 4172
          • 5,888 Posts
          If this is for a custom-table and you have a custom package created, you can create a custom update-processor in

          core/components/{yourpackage}/processors/mgr/default/update.php
          or
          core/components/yourpackage/processors/mgr/{yourdefinedprocessorspath}/update.php

          by copying the processor

          core/components/migx/processors/mgr/default/update.php

          and adding your stuff

          you could also create your own save-function into your custom-table-xpdo-class

          Or, if this is for resources, and you are using this one:
          https://github.com/Bruno17/migxchildresources/blob/master/core/components/migxchildresources/processors/mgr/default/update.php
          the plugin-events OnDocFormSave and OnBeforeDocFormSave should work.

            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 16313
            • 71 Posts
            thank you Bruno, it works like a charm smiley
            last question regarding "displaying of fields".
            I've added some css code to assets/components/migx/css/mgr.css and it works for me.
            width: 45%;
            float: left;
            margin-right: 20px;

            how can I add custom css file only for migxdb component?
            can I add additional class to a field and then change a style of this field?
            • discuss.answer
              • 4172
              • 5,888 Posts
              forgot about that feature, I've added some time ago.
              Within the MIGX-configurator in the field-configuration, you can have this special-placeholder in the description-field, which will get replaced with the rendered form-element:

              [+[+tv_formElement]]


              and check the checkbox 'description is code'
              you can put a div around it and add some styling to that one, then.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 16313
                • 71 Posts
                thank you! great feature and great component.
                Вeer is already in your account wink