We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30912
    • 463 Posts
    Quote from: mariukas at Sep 08, 2010, 05:31 AM

    Hello everyone,

    I have installed EvoGallery with managermanager TV and I have interesting behaviour. I have two documents. Each contains his own gallery, in back-end everything is ok, however in front-end both documents share same pictures (two galleries merged to one).

    I’m using this call:

    [[EvoGallery? &display=`images` &type=`simple-list` ]]

    Any help?

    Sounds like you need to add the Document Id to your call try:


    [[EvoGallery? &display=`images` &type=`simple-list` &docId=`id of document` ]]
      • 8790
      • 526 Posts
      [[EvoGallery? &display=`images` &type=`simple-list` &docId=`id of document` ]]

      Yes I add the same issue &docId seams to be mandatory
        Schtroumpf Grognon - Grouchy Smurf
        ---------------------------------
        Faites pas attention.. - Don't pay attention
        http://www.dzi-neo.net
        • 18331
        • 20 Posts
        Thanks for reply. I’m using that call in template, so it should change depending on which page you are. I think about something like &docId=’[~id~]’ i’m doing something wrong:) What should i use for dynamic id?

        By the way if I’m using let’s say &docid=’37’ i get this mysql error:

        « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’37’’ ORDER BY id ASC’ at line 1 »

        (call is: [[EvoGallery? &display=`images` &type=`simple-list` &docId=’37’ ]] )

        Thanks again!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          [*id*]

          [~xx~] is for generating a URL, and needs to be a numeric resource ID.
            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
            Looks like you’re using ’’ single-quotes instead of `` backticks around the parameter value
            [[EvoGallery? &display=`images` &type=`simple-list` &docId=`37` ]]
              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
              • 18331
              • 20 Posts
              Yes I found that bug:) But you were faster to write an reply:) Thank you all for your help:) Now works perfectly!:)
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                The doubled ’’ in the sql error message was a dead give-away; my eyes aren’t what they used to be and I missed it the first time around!
                  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
                  • 18331
                  • 20 Posts
                  Anyway thank you for your help:) I’m very glad that everything is working now. EvoGallery very nice tool and easy to use for users.
                    • 4385
                    • 372 Posts
                    Thanks for making EvoGallery, I hope it continues to improve.

                    Here is a template that I made for a site. It recreates the cloud-zoom effect as seen here http://www.professorcloud.com/mainsite/cloud-zoom.htm

                      DropboxUploader -- Upload files to a Dropbox account.
                      DIG -- Dynamic Image Generator
                      gus -- Google URL Shortener
                      makeQR -- Uses google chart api to make QR codes.
                      MODxTweeter -- Update your twitter status on publish.
                      • 4385
                      • 372 Posts
                      Here a Nivo gallery type. http://nivo.dev7studios.com/


                      
                      <script type="text/javascript">
                      $(window).load(function() {
                      	$('#slider').nivoSlider();
                      });
                      </script>
                      [!EvoGallery? &display=`images` &type=`nivoslider`!]
                      
                        DropboxUploader -- Upload files to a Dropbox account.
                        DIG -- Dynamic Image Generator
                        gus -- Google URL Shortener
                        makeQR -- Uses google chart api to make QR codes.
                        MODxTweeter -- Update your twitter status on publish.