We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    I was wondering if it’s possible to create extra fields that can be filled out for uploaded images. Is there a way to add more fields like the title and description ones? I would find it useful if I can do this with out too much hacking.

    Thanks
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 7923
      • 4,213 Posts
      Yes, the v0.6 test version supports custom fields. Look at the sticky thread.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        OOO I missed that one!

        I read the thread and tried it but doesn’t seem to work with what I tried.

        I have maxigallery 0.5.2 installed and in my call I put &customFields=`price` in my MG call and in my managepictureTpl file I put the following under the title and desc codes.

        	[+maxigallery.strings.price+]:
        	<br/>
        	<textarea name="[+maxigallery.fieldnames.price+]" rows="8" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.price:htmlent+]</textarea>
        	<br />


        The box shows up in the manager but the value is not being stored in the database, nor is the field being created in the DB.

        Any other things I’m missing?
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 7923
          • 4,213 Posts
          You need to have the v0.6 test version for the custom fields to work.

          My SVN account is broken at the moment though, so you cannot download it from there. I’ll try to get it resolved with the service provider.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            Ok no probs... Even if you could zip up a fairly stable release with the customFields support on here that would be great?

            Thanks!
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 7923
              • 4,213 Posts
              The zip is attached to the first post of the sticky thread.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 25551 ☆ A M B ☆
                • 1,231 Posts
                Thanks Doze... managed to get it working in the end.

                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart
                  • 25551 ☆ A M B ☆
                  • 1,231 Posts
                  I just tested the update with another site that I used MG on and it’s throwing up an error with a mootools javascript that worked fine before I changed MG.

                  Any idea what could cause the issue between .5.2 and the .6 versions?

                  The error is

                  Error: el.getElement("img") is null
                  Source File: mysite/assets/js/mooFlow/MooFlow.js
                  Line: 83


                  Line 83
                  var hash = $H(el.getElement('img').getProperties('src','title','alt','longdesc'));


                  My call
                  [!MaxiGallery? &disable_js_libs=`1`  &galleryOuterTpl=`galleryOuterTest`  &max_thumb_size=`150` &quality_big=`100` &quality_pic=`100`   &quality_thumb=`100` &galleryPictureTpl=`SmoothGalPicTpl`   &gal_query_ids=`[+id+]`   &js=`MooFlow`  &query_level_limit=`1`  &thumb_shadow_bgcolor=`000000` &order_by=`random` &pics_per_page=`10` &pics_per_row=`0` !]



                  The reason I’m using &gal_query_ids=`[+id+]` is because the gallery is within a ditto call. Anyway, if you have any ideas what it could be that would be great.
                    Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                    AugmentBLU - MODX Partner

                    BLUcart - MODX Revolution E-Commerce & Shopping Cart
                    • 7923
                    • 4,213 Posts
                    You are using &disable_js_libs=`1` parameter what means that maxigallery will not put mootools or other libraries automatically to the source.

                    So you need to provide mootools to the source by your self. What version of mootools are you using? is it the same that is in smoothgallery folder? SmoothGallery won’t probably work with newer mootools..


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."