We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    Quote from: knightknight at May 25, 2010, 04:10 PM

    @BobRay, I’m using 0.1-beta2 on Revolution 2.0.0-rc-1 rev6614 and I’ve tested out fancyBox and works a treat. Although I’m not using the &plugin but simply loading the jQuery and javascript in the <head> and class/id calls in the chunk.
    Well, first off, 0.1-beta2 says it’s for Revo RC-2 only, not Revo-rc1. So that’s one wrong step.

    To get it working in RC1, you’ll have to manually import the lexicon topics in core/components/gallery/lexicon/en/default.inc.php and galleriffic.inc.php into Lexicon Management, under the gallery namespace and as the ’default’ and ’galleriffic’ topic names, respectively.


    is there anyway is enable or disable images that are included in the call, or display just a single image. I see there’s an &showInactive but I’ve got a lot of field/buttons in Chrome 6.0.408.1 and FF v3.6.3 not showing up (see attached)?
    You can disable images, yes - by right-clicking on an image, and setting inactive to 0. However, there’s a bug, and you’ll need to add this line above line 34 in core/components/gallery/processors/mgr/item/update.php:

    $_POST['active'] = !empty($_POST['active']) ? 1 : 0;
    


    I’ll have a patch for that up soon, but it will only work on Revo 2.0.0-RC-2.

    As for displaying a single image, no, I plan to add a [[GalleryItem]] snippet in future versions, but for now you can just give it a unique tag and just call it via [[!Gallery? &tag=`myUniqueTag`]].


    How do I get the linked image to use a template/page. I’ve not having much success with &containerTPL &toPlaceholder, if that’s how I understand it. When I click the link image that where it takes me;
    ’use a template/page’? Gallery is not linked to a specific page, like EvoGallery is. If you want it on a page, you simply put the snippet call in the Resource or in the Template.
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 28215
      • 4,149 Posts
      Quote from: knightknight at May 26, 2010, 05:45 AM

      doh! I think I’ve figured out my second problem. I basically created another chunk with only <img class="" src="[[+image]]" alt="[[+name]]" title="[[+name]]" /> and used that on the &thumbTpl controlling the the images with &imageHeight/Width. So not sure what the point of &containerTpl is now..
      &containerTpl lets you wrap the entire gallery in a chunk, if you want to.


      Note, I’m getting the occasional issue where I select Components -> gallery => and the page either doesn’t load, doesn’t list my albums or if I perform an action like save/create the page goes blank in the browser. Currently happening on Windows 7 x64, XAMPP 1.7.3, using 0.1-beta2 on Revolution 2.0.0-rc-1 rev6614 via Chrome 6.0.408.1 and FF v3.6.3. Not a major problem just takes a couple of refreshes.
      This seems to be a bug with Chrome; Chrome’s "super fast caching" seems to not like cached JS and creates problems there.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 28215
        • 4,149 Posts
        Anyway I got the albums to output to a drop down menu TV using the @SELECT name FROM `modx_gallery_albums`. So selecting the appropriate album to the page works for me. Easier then I thought. grin
        That’ll work. Good idea. laugh


        However the &showInactive still perturbs me as I think setting this option per image would be my single image output option. But I can’t see it...
        See above patch.


        One other thing, can the output of phpThumbs be cleaned up (readable) rather then % for spaces?
        http://localhost/modxcms-2.0/assets/components/phpthumb/phpThumb.php?w=100&amp;h=100&amp;zc=1&amp;src=http%3A%2F%2Flocalhost%2Fmodxcms-2.0%2Fassets%2Fcomponents%2Fgallery%2Ffiles%2F2010%2F05%2Fnew-shape-chamfer-box-start.jpg
        No, as the url encoding is required for it to work in all browsers.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 16085
          • 203 Posts
          @splittingred, thanks dude. I’m really liking what I can do with this snippet and Rev. I’m using getRsources alot and really didn’t want to work backwards with Evo and EvoGallery/Ditto which I nearly did!

          RC-2.. whoops didn’t see that. Although I found this through svn docs and got excited. Anyway I followed your steps and it all make perfect sense!! grin And now I see &showInactive that works as a single image workaround’ish method, although I did think about taggin just didn’t try it. I’ll look forward to the [[GalleryItem]] update.

          Overall now I’ve the TV drop down sorted this is working out great for what I need. Maybe that something you could add in the next update so it installs a ready made TV album select. Maybe.

          Thanks again.
            • 16085
            • 203 Posts
            So my TV gallery album works, sort off. The problem I’m having is it will select by default the first album unless you select a different one. I’ve tried using List Box, check box thinking unless it highlighted it won’t select it but it always does. So how do I put in a blank option before it does the @SELECT so where I’ve not set the gallery it won’t display.
              • 3749
              • 24,544 Posts
              The lexicon load did it. Very slick. smiley

              Is there any way to integrate a drop shadow and or mask? I didn’t see those in the roadmap.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 3749
                • 24,544 Posts
                I’m still struggling with this.

                With no plugin, clicking on an image loads the image in a separate browser page with no template.

                I can’t get &containerTpl and toPlaceholder to do anything.

                &containerTpl=`MyGalleryTpl`
                &toPlaceholder=`MyGallery`


                The MyGalleryTpl chunk has this:

                <p>This is my gallery</p>
                <div class="MyGallery">
                [[+MyGallery]]
                </div>


                I’m getting no output -- not even the "This is my gallery" line.

                I did get Galleriffic to work, but I’m finding it almost impossible to style in any template I have. Try it in Andreas05 if you want to see a real mess. tongue

                I added this to the snippet code, but it’s still devilish (for me anyway) to get any decent styling:

                if (isset($scriptProperties['cssPath'])) {
                $modx->regClientCSS($scriptProperties['cssPath']);
                }
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 28554
                  • 201 Posts
                  What would really make this work for me is being able to control the output entirely. So the calls and chunks would do the following:
                  
                  Call:
                  [[Gallery?thumbRowTpl=`galleryThumbRowTpl`&containerTpl=`galleryContainerTpl`&thumbTpl=`galleryThumbTpl`]
                  <br /><br />Chunk: galleryContainerTpl<br />
                  <ul>[[+thumbRow]]</ul>
                  <br /><br />Chunk: galleryThumbRowTpl<br />
                  <li><a href="[[+imageURL]]" title="[[+imageTitle]]">[[+thumb]]</a></li>
                  <br /><br />Chunk: galleryThumbTpl<br />
                  <img src="[[+thumbURL]]" class="thumb" alt="[[+imageTitle]]" />
                  <br /><br /><br />This would give me complete control over the output, therefore keeping more of my workflow within my regular HTML + CSS + JS process instead of handing it over to a plug-in you define and adapting my regular workflow to that... Let me know what you think :).