We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Raymond,

    I did install and upload a picture so I have 1 picture in my gallery.

    I put this line in a web page: [[PhotoGallery? &id=’1’]]

    But this is what I got: "No gallery specified!"

    What am I missing?

    Thanks
      • 1764
      • 680 Posts
      Quote from: chanh at Sep 01, 2005, 12:36 PM


      I put this line in a web page: [[PhotoGallery? &id=’1’]]

      But this is what I got: "No gallery specified!"


      Try this
      [[PhotoGallery?id=1]]
        • 34162
        • 1 Posts
        Same thing:

        [[PhotoGallery?id=1]]

        No gallery specified!

        Do you have any idea what I might be missing?

        Thanks
          • 1764
          • 680 Posts
          Quote from: chanh at Sep 01, 2005, 12:46 PM

          Same thing:

          No gallery specified!


          Oops, sorry. I should have checked that better. It should be
          [[PhotoGallery?galleryid=1]]
            • 34162
            • 1 Posts
            Adam,

            That did it!

            Thanks
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              This is really nice! Just with a bit of creative CSS I was able to use it as a single row of images across the top banner of the page, and make the linked larger image look like a separate page! And I’ll be able to use it again in a slideshow in the sidebar.



                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Well, the slideshow feature isn’t what I thought...but that’s OK. Still works great for the top banner.

                Did find a slight bug, though; forgot quote marks in the src= on line 511; should be

                $chunk_main .=    '<a '.$target_to.' href="'.$link.'"><img class="EPG2_image_thumb" alt="'.$picture['title'].'" 
                src="assets/modules/epg2/image.php?type=pic_thumb&id='.$picture['id'].'" /></a>';


                and on line 552

                         $chunk_main .=       '<a '.$target_to.' href="'.$link.'"><img class="EPG2_image_thumb" alt="'.$picture['title'].'" 
                src="assets/modules/epg2/image.php?type=pic_thumb&id='.$picture['id'].'" /></a>';


                and line 577

                   $chunk_main .=       '<img class="EPG2_image_large" alt="'.$picture['title'].'"
                 src="assets/modules/epg2/image.php?type=pic_large&id='.$picture['id'].'" />';


                Nothing vital, but won’t validate like that.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 32963
                  • 1,732 Posts
                  Thanks Susan. I’ll add those in
                    xWisdom
                    www.xwisdomhtml.com
                    The fear of the Lord is the beginning of wisdom:
                    MODx Co-Founder - Create and do more with less.
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Finally got the home page to validate XHTML 1.1; there is something weird about the site, I think it’s something to do with the multilanguage cookie, I can’t "view source", and the W3C validation site can’t get it (gets a 302 Found error), but I can save it as a file, and upload the file to the validator.

                    Anyway, the other main issue was the SearchForm snippet; it seems that you can’t have bare input fields (or anything else) in a form, they have to be enclosed in a <div> or something INSIDE the form tags. So I just added the <div>...</div> tags inside the form tags in the snippet. Now it’s all nice and valid. If I can only figure out what the problem is with the cookie.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      I have it set up in Slideshow mode, and ran into a problem. When you first open the page, there is no image, just the link for "next image". I’ve studied the code, and I don’t see how to force it to display the first image on startup. Any ideas?
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org