We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33372
    • 1,611 Posts
    Quote from: DorianJ at Dec 10, 2007, 06:12 PM

    Still doesn’t work. It just opens the image in a new page by itself. Any chance someone can post a step-by-step tutorial in logical order that includes EVERY step for accomplishing this process? This is getting discouraging. sad
    I think you must have missed a step in the installation process. If you’re not seeing the JavaScript effects then either the JS is not being included (is it in your document head? did you upload the files to your server? to the correct place?) or the necessary CSS is missing or broken. The wiki contains every step in the process, so make sure that you’ve done them all.
      "Things are not what they appear to be; nor are they otherwise." - Buddha

      "Well, gee, Buddha - that wasn't very helpful..." - ZAP

      Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
      • 7455
      • 2,204 Posts
      your step3 will not overwide the folder but will put the files in the folder thereby changing the folders contents. but it wil not delete any existing content that is not the same as the ones needed for maxigallery.

      Using lightbox AND QuickEdit will result in not seeing the lightbox fx when you are logged in, try logging out to see if the lightbox fx works
        follow me on twitter: @dimmy01
        • 7869
        • 118 Posts
        Maybe can you guys tell me, is MG only used for literally making a gallery? I know that’s what the name says, but I was hoping it could be used for simpler purposes than galleries.

        Let’s say that I have three paragraphs <p></p> of text and ONE of those paragraphs has an image within it. Can MG handle that? From what I’ve seen, MG will only display images within a <table></table> element that it creates. I have been able to accomplish what I want with Lightbox wink, but I would *really* like to use the thumbnail and watermark features of MG, however if I can’t control where the image is on the page, then I guess I’ll have to use Lightbox and create my own thumbnails and watermarked images in Photoshop. undecided

        Unless you guys can suggest something else, I’m stumped. huh
          -Dorian
          • 7455
          • 2,204 Posts
          you can create your own chucks as templates voor maxigallery and do it any way you want
          you can limit the picture count to 1 etc lots of options to use
            follow me on twitter: @dimmy01
            • 7923
            • 4,213 Posts
            Quote from: DorianJ at Dec 12, 2007, 05:07 PM

            MG will only display images within a <table></table> element that it creates.
            The current version does not use tables any more at default settings and the whole output is totally templateable.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 7869
              • 118 Posts
              Quote from: doze at Dec 16, 2007, 04:53 PM

              The current version does not use tables any more at default settings and the whole output is totally templateable.
              Thanks, but can you tell me what file to edit/create to change the output? How do I template the output? I’ve been reading the wiki and documentation and don’t understand this part.
                -Dorian
                • 7923
                • 4,213 Posts
                depends on what element you are trying to template, these two are used in the thumbnails view.

                galleryOuterTpl holds the manage button, page numbers and thumbnail placeholders etc, and it has the top level html in it. galleryPictureTpl is used to render each thumbnail inside the galleryOuterTpl. You can see the default template contents from the files that are the default values for these parameters. You can create your own template in a chunk for example based on those (or completely from scratch if you like) and define it in the snippet call.


                &galleryOuterTpl
                The outer template for the gallery overview.

                Possible values:

                * Chunk name
                * @FILE:<path to a file>
                * @CODE:<template string>

                Default value:

                @FILE:/assets/snippets
                /maxigallery/templates
                /galleryoutertpl.html


                &galleryPictureTpl
                The template for each picture element (thumbnail) in the gallery overview.

                Possible values:

                * Chunk name
                * @FILE:<path to a file>
                * @CODE:<template string>

                Default value:

                @FILE:/assets/snippets
                /maxigallery/templates
                /gallerypicturetpl.html


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 7869
                  • 118 Posts
                  So this probably involves an advanced knowledge of programming, is that right? I’ve looked at those files (galleryoutertpl.html and gallerypicturetpl.html) and I just can’t understand that code in them.
                    -Dorian
                    • 7923
                    • 4,213 Posts
                    No, it doesn’t involve any advanced programming.. The template chunk can be pure html with the available placeholders included. The default content may seem complex, because it is able to handle all the various display types that are controlled by snippet parameters (display and embedtype).

                    Here’s example of minimum template contents:

                    &galleryOuterTpl
                    <div>
                    	[+maxigallery.pictures+]
                    </div>
                    


                    &galleryPictureTpl
                    <a href="[+maxigallery.picture_link_url+]">
                    	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
                    </a>
                    


                    You can see the available template placeholders from MaxiGallery wiki page: http://wiki.modxcms.com/index.php/MaxiGallery#Placeholders

                    If you would like to use slimbox or something, you would have rel="lightbox[set]" etc attributes in the link.. You can see examples from the default template content.. There is a block like this for example:
                    [+maxigallery.embedtype:is=`slimbox`:then=` 
                    
                    	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                    
                    `+]
                    

                    What means that if the snippet call has &embedtype=`slimbox` this link is used. But you can cut most of this stuff out from your custom template because you only need the code that you will use for your display type.


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