We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19328
    • 433 Posts
    ambaxter asked 'When you use a Textarea in MIGX, it doesn't allow you to use the return key, because that closes the open item. Can this be fixed easily?'

    Did you find a solution for this problem? I can't find it in this forum...

      • 19328
      • 433 Posts
      And another question, can I use MIGX in combination with the If snippet?
      For example:

      [[If? &subject=`[[*mainContentAside]]` &operator=`isnotempty` &then=`aside` else=`` ]]


      mainContentAside is the MIGX tv. I only want to include the class 'aside' when this tv is not empty.
      This doesn't work. Am I doing something wrong here?

      It would be great if this is possible, MIGX is fantastic! smiley

      Update: I fixed it, it was a forgotten '&' in front of the word 'else'. Stupid mistake!! [ed. note: michelle84 last edited this post 14 years, 10 months ago.]
        • 4172
        • 5,888 Posts
        Quote from: michelle84 at Nov 06, 2011, 07:21 AM
        ambaxter asked 'When you use a Textarea in MIGX, it doesn't allow you to use the return key, because that closes the open item. Can this be fixed easily?'

        Did you find a solution for this problem? I can't find it in this forum...


        you can try to remove this part:
                ,keys: [{
                    key: Ext.EventObject.ENTER
                    ,fn: this.submit
                    ,scope: this
                }]		


        from migx.tpl under MODx.window.UpdateTvItem
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 8830
          • 98 Posts
          Hi,

          I just upgraded to MODx 2.2.0 RC1 from 2.1.5 and I'm getting this error when trying to edit or create a new MIGX item.

          Fatal error: Call to a member function setPlaceholder() on a non-object in /home/testpage/public_html/core/model/modx/processors/element/tv/renders/mgr/input/option.php on line 43

          Is this a known bug? Something that's easy to fix temporarily?
            • 4172
            • 5,888 Posts
            wasn't able to install 2.2 yet, so I couldn't try it out, but you can try this:

            https://github.com/Bruno17/multiItemsGridTV/commit/e2c41d409732515dfb50a37298129745e559ddad

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

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 8830
              • 98 Posts
              Seems to work great. Thanks.
                • 37832
                • 7 Posts
                Hi all! First of all, I'm feeling a little out of my depth with MIGX so any help is appreciated. It's a great addition to ModX and i'm really looking forward to using it. I've had it working using the examples from the RTFM but when I come to customise it for my current project I'm getting issues.

                Details are below. I've got two records in the 'feature' TV and it outputs two of the feature_TPL but with no images, links or titles. Could somebody point me in the right direction?

                My 'hold-all' TV is 'feature'.

                I've got 4 TVs:

                • "slide_title" - Text
                • "slide_description" - Text Area
                • "slide_image" - Image
                • "slide_link" - Resource List

                My Forms Tabs is as follows:
                [
                {"caption":"Slides", "fields": [
                    {"field":"title","caption":"Title","inputTV":"slide_title"},
                    {"field":"text","caption":"Text","inputTV":"slide_text"},
                    {"field":"image","caption":"Image","inputTV":"slide_image"},
                    {"field":"link","caption":"Link","inputTV":"slide_link"}
                ]}
                ]
                


                My Grid Columns is as follows:
                [
                {"header": "Title", "width": "80", "sortable": "true", "dataIndex": "title"},
                {"header": "Text", "width": "80", "sortable": "false", "dataIndex": "text"},
                {"header": "Image", "width": "160", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"},
                {"header": "Link", "width": "80", "sortable": "false", "dataIndex": "link"}
                ]
                


                I have the following chuck as a TPL called feature_TPL

                <div class="slide clearfix">
                 <div class="caption grid_6">
                  <h2>[[+slide_title]]</h2>
                  <p>[[+slide_description]]</p>
                  <a href="[[~[[+slide_link]]]]" class="round small button green">
                   <span>Read More</span>
                  </a>
                 </div> <!--End .caption-->
                 <img alt="[[+slide_title]]" src="[[+slide_image:phpthumbof=`w=300&h=300&zc=1&q=100`]]" />
                </div> <!--End .slide-->
                


                And my call is
                [[!getImageList? &tvname=`feature` &tpl=`feature_TPL`]]


                Any help would be really appreciated and the site can be seen at: http://staging.marklyon.co.uk/eqstudiosrevo/

                Thanks again!

                  • 4172
                  • 5,888 Posts
                  whats your output with

                  [[!getImageList? &tvname=`feature`]]


                  or just with:

                  [[*feature]]
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 13218
                    • 134 Posts
                    Wouldn't you have to name the placeholders in the chunk like you name them in form tabs field?

                    In this case instead of
                    [[+slide_link]]
                    use
                    [[+link]]
                    etc. ? [ed. note: itWillBeOk last edited this post 14 years, 10 months ago.]
                      @itWilllBeOK
                      • 4172
                      • 5,888 Posts
                      of course, you are right itWillBeOk, he has to use the

                      field-names not the tv-names for the placeholder-names.
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!

                      This discussion is closed to further replies. Keep calm and carry on.