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

    I’m probably missing something but I can’t display the name and description of the album when on it

    Here’s the url

    mysite/media/?galAlbum=2

    And I can see the thumbnails

    Here is the code I use. See comments for the problem


    <!-- to placeholder -->
    [[!GalleryAlbums? &toPlaceholder=`GalleryAlbums` &limit=`0` &albumCoverSort=`rank` &prominentOnly=`0` &rowTpl=`ChicoGalAlbumRowTpl` &thumbWidth=`195` &thumbHeight=`140`]]
      
    <!-- to placeholder -->
    [[!Gallery? &checkForRequestTagVar=`1` &toPlaceholder=`Gallery` &useCss=`0`]]
    
    <!-- If gallery empty show albums -->
    [[!If? &subject=`[[+Gallery]]` &operator=`isempty` &then=`
        
        <!--  This works    -->
        <h1>[[*pagetitle]]</h1>
        [[*content]]
        [[+GalleryAlbums]]
    
    ` &else=`
        <!-- !!!Show Album !!! gallery name and descriptipn are not shown but the thubnails are displayed-->
        <h1>[[+gallery.name]]</h1>
        <p>[[+gallery.description]]</p>
        [[+Gallery]]
        
    `]]



    Thanks
      • 5340
      • 1,624 Posts
      Anyone, ideas at least? smiley

      Thanks
        • 5340
        • 1,624 Posts
        Here’s what worked smiley

        [[!GalleryAlbums? &toPlaceholder=`GalleryAlbums` &limit=`0` &albumCoverSort=`rank` &prominentOnly=`0` &rowTpl=`GalAlbumRowTpl` &thumbWidth=`195` &thumbHeight=`140`]]
                  
                [[!Gallery? &checkForRequestTagVar=`1` &toPlaceholder=`Gallery` &useCss=`0` &containerTpl=`GalleryAlbumTpl`]]
                
                [[!If? &subject=`[[+Gallery]]` &operator=`isempty` &then=`
                    
                    <h1>[[*pagetitle]]</h1>
                    [[*content]]
                    [[+GalleryAlbums]]
                
                ` &else=`
                   
                    
                    [[+Gallery]]
                    
                `]]
        


        I had to add the GalleryAlbumTpl to the call

        <h1>[[+album_name]]</h1>
        <p>[[+album_description]]</p>
        [[+thumbnails]]


          • 37210
          • 131 Posts
          Thanks for the tip! Helped out with my project heaps since I couldn't find any other information regarding the album name.

          Sar