Zum Inhalt springen

YAG - Thumbs in Gallery Ansicht eine andere Größe zuweisen

Erstellt am 25. Mai 2013 · 1 Antwort · letzte Antwort am 25. Mai 2013

Tags: YAG Gallery, Frage

rolib ·

Hallo,
ich versuche bei YAG die Thumbs der Galerieansicht eine andere Größe zu geben, aber ich check das nicht:

plugin.tx_yag.settings.themes {
    myFancyTheme < plugin.tx_yag.settings.themes.lightbox
    myFancyTheme {

    resolutionConfigs {
           thumb >
           thumb {
              width = 100c
              height = 100c
           }    
        }
        # Per default, gallery thumbs have the same size as item list thumbs.
        # Feel free to override this, if you want to have a different resolution for gallery thumbs
        galleryThumb < plugin.tx_yag.settings.themes.lightbox.resolutionConfigs.thumb
   }
}

Wenn ich das richt verstehe kopiere ich mit dieser Zeile die Thumb Größe des Theme Lightbox in galleryThumb

galleryThumb < plugin.tx_yag.settings.themes.lightbox.resolutionConfigs.thumb

Dann müsste ich doch mit einer eigenen Theme für die galleryThumbs das gewünschte Ziel erreichen???

plugin.tx_yag.settings.themes {
    myGalleryThumb < plugin.tx_yag.settings.themes.lightbox
    myGalleryThumb {
       resolutionConfigs {
           thumb >
           thumb {
              width = 200
              height = 100c
           }    
        }
    }
}

Und das kopiere ich bei myFancyTheme in galleryThumbs

plugin.tx_yag.settings.themes {
    myFancyTheme < plugin.tx_yag.settings.themes.lightbox
    myFancyTheme {

...

galleryThumb < plugin.tx_yag.settings.themes.myGalleryThumb.resolutionConfigs.thumb

...

}
}

Da es jedoch nicht funktioniert bin ich wahrscheinlich am Holzweg #paralyzed#
Wäre über einen Tipp sehr dankbar wie das zu lösen ist.
http://yag-gallery.de/features-documentation/tutorials/build-your-own-theme/change-resolutions/

rolib ·

Mensch ein Klammerfehler - ich #angry# hab diese Zeile außerhalb der resolutionConfigs zugewiesen:

galleryThumb < plugin.tx_yag.settings.themes.lightbox.resolutionConfigs.thumb

So passt es und funktioniert auch

plugin.tx_yag.settings.themes {
    myFancyTheme < plugin.tx_yag.settings.themes.lightbox
    myFancyTheme {
 
    resolutionConfigs {
           thumb >
           thumb {
              width = 100c
              height = 100c
           }   
        
           galleryThumb < plugin.tx_yag.settings.themes.myGalleryThumb.resolutionConfigs.thumb 
        }

        
   }
}

Kürzer wärs dann natürlich so:

...
resolutionConfigs {
           thumb >
           thumb {
              width = 100c
              height = 100c
           }   
 
           galleryThumb {
             width = 170
             height = 100c
           }
        }
...