We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16680
    • 73 Posts
    Hi

    This has perhaps been covered before, but I haven’t been able to  find any solutions.
    I have done _exactly_ as it says in the Wiki under the http://wiki.modxcms.com/index.php/MaxiGallery#Picture_and_thumbnails_on_same_page. This works just fine, but for some reason I am not able to add any title or descriptions to the images in the manager section.
    Has anyone else experienced this, and is there some way to fix it?

    Thanks, larsb
      Signature on it's way
      • 7923
      • 4,213 Posts
      You need to use the &manage_target and &is_target snippet parameters to make the picture management on a separate document as you have multiple calls on a single document. See the parameters in wiki for more details.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 16680
        • 73 Posts
        Hey Doze

        Thanks alot for your answer. I got it sorted out straight away.
        By the way. When adding customFields do I then need to manually add the fields to mySql or is that done automatically? Because when I am in the MaxiGallery manager and I try to add data to a field, I can’t get it to save. I tried deleting the MaxiGallery to get a clean start, but it didn’t add my custom fields when it recreated the table?

        Thanks again, larsb
          Signature on it's way
          • 4172
          • 5,888 Posts
          do you have the latest version from svn? http://mirror3.cvsdude.com/trac/doze/MaxiGallery/changeset/166/trunk/assets?old_path=%2F&format=zip

          then, when you use the parameter &customFields=`field1,field2......` maxigallery adds the fields automatically to the table.
          Dont forget to change your templates by adding the placeholders for the new added customFields.

          Bruno
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 16680
            • 73 Posts
            Hmm, have done all that, but it’s still not working.
            The customFields are displaying fine, both in the templates and the MaxiGallery manager, but it won’t save any data to them..

            Thanks, larsb
              Signature on it's way
              • 4172
              • 5,888 Posts
              Did you check the maxigallery-table? Are the fields there after you call maxigallery with &customFields?
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 16680
                • 73 Posts
                Yes, and they don’t appear after having called MaxiGallery which is pretty strange.

                I have 2 calls on the gallery page:
                [!MaxiGallery? &gtable=`ziestha_kids` &manage_target=`181` &galleryPictureTpl=`thumbs` &customFields=`pris,farve` &galleryOuterTpl=`outerThumbs` &js=`mgJs`!]

                [!MaxiGallery? &gtable=`ziestha_kids` &pictureTpl=`picture` &max_pic_size=`300` &customFields=`pris,farve` &display=`pictureview`!]


                And then the call for the manager page:
                [!MaxiGallery? &manage_target=`181` &gtable=`ziestha_kids` &managePictureTpl=`galleryCustomField` &customFields=`pris,farve` &is_target=`1`!]


                I have checked and double checked all chunks and everything seems to be as it should.. *sigh*

                thanks, larsb
                  Signature on it's way
                  • 4172
                  • 5,888 Posts
                  hmm, thats really strange!
                  Before we go into maxigallery-debugging, can you post your galleryCustomField - Template, please?
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 16680
                    • 73 Posts
                    Sure, hey thanks for helping me out here, its very frustrating huh

                    	[+maxigallery.strings.title+]:
                    	<br/>
                    	<textarea name="[+maxigallery.fieldnames.title+]" rows="2" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.title:htmlent+]</textarea>
                    	<br />
                    	
                    	
                    	[+maxigallery.strings.description+]:
                    	<br/>
                    	<textarea name="[+maxigallery.fieldnames.description+]" rows="4" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.descr:htmlent+]</textarea>
                    	<br />
                    	
                    	
                            Pris:
                    	<br/>
                    	<textarea name="[+maxigallery.fieldnames.pris+]" rows="2" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.pris:htmlent+]</textarea>
                    	<br />
                    
                    	Farve:
                    	<br/>
                    	<textarea name="[+maxigallery.fieldnames.farve+]" rows="2" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.farve:htmlent+]</textarea>
                    	<br />


                    thanks, larsb
                      Signature on it&#39;s way
                      • 4172
                      • 5,888 Posts
                      OK, title and description is saved, but pris and farve not?
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!