We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37449
    • 57 Posts
    Am fully aware it’s me and my lack of understanding, but looking for some simple pointers here...

    What I’d like is:

    A galley home page that lists the albums I have created
    Click on one to be taken to that album

    I have created a resource for my first album, and I can navigate to that resource and my images are displayed:
    [[!Gallery? &album=`lunar`]]
    


    What I can’t get is the parent container to list the albums! Following the example calls, I have:
    [[!GalleryAlbums? &toPlaceholder=`albums`]]
    
    [[+albums]]
    


    but get nothing out at all!

    Any pointers to where I am going wrong?

    Thanks
    Daz

    Revolution: 2.1.12-pl
    MySQL
    Server: localhost (MySQL host info: localhost via TCP/IP)
    Server version: 5.1.36-community-log

    Web server
    Apache/2.2.11 (Win32) PHP/5.3.0
    MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
    PHP extension: mysqli




      formerly sumodaz on here!
      • 37449
      • 57 Posts
      Incidentally, when I enter the Example1 code (below) I get no output either - images or gallery!!

      [[!Gallery? &toPlaceholder=`gallery`]]
      [[!GalleryItem]]
      [[!GalleryAlbums? &toPlaceholder=`galleries`]]
       
      <div style="float: right">
      <h2>Galleries</h2>
      <ul>
      [[+galleries]]
      </ul>
      </div>
       
      <h2>Item</h2>
       
      [[!+galitem.image:notempty=`
      <div class="image">
        <a href="[[+galitem.image]]"><img class="[[+galitem.imgCls]]" src="[[+galitem.image]]" alt="[[+galitem.name]]" /></a>
        <br />Albums: [[+galitem.albums]]
        <br />Tags: [[+galitem.tags]]
      </div>
      `]]
       
       
      <hr />
       
      [[!+gallery:notempty=`
      <h1><a href="[[~[[*id]]]]">[[+gallery.name]]</a></h1>
      <h2>[[+gallery.description]]</h2>
       
      [[+gallery]]
      `]]
      
        formerly sumodaz on here!
        • 37449
        • 57 Posts
        Well, I came across the tutorial about colorbox http://modxrules.com/articles/modx-revolution-gallery-with-colorbox-and-jquery-asynchronous-image-loader-jail"" target="_blank" rel="nofollow">here and I now have a gallery list and can display images!

        I can now see how the calls link grin
          formerly sumodaz on here!