lionel-m / galerie

[No longer maintained] Galleria extension for the Contao CMS
5 stars 2 forks source link

Add possibility to configure theme-specific options #13

Closed abias closed 10 years ago

abias commented 10 years ago

Hi,

I have purchased the "Azur" Theme for Galleria. This theme offers variations and theme-specific options (see http://galleria.io/docs/themes/azur/). Variations can be set in the Contao plugin, but as far as I see, there is no possibility to configure theme-specific options in the plugin GUI. Could you please add this possibility or tell me how I can use theme-specific options with the existing GUI?

Thanks, Alex

lionel-m commented 10 years ago

Hi,

but as far as I see, there is no possibility to configure theme-specific options in the plugin GUI

The option exists under "Display" -> "Variation". You can write "light" or "smallarow" or both "light smallarow".

abias commented 10 years ago

Thanks for the quick reply. But I think you misunderstood me... How can I configure the "Theme-specific options" which are mentioned on http://galleria.io/docs/themes/azur/ in the contao plugin?

lionel-m commented 10 years ago

I found an answer on the Galleria forum :
http://support.galleria.io/discussions/questions/1046-theme-specific-options-in-drupal#comment_17961946

I do not have a premium theme so I have adapted the example of Samuel for the classic theme but it seems not to work...

Galleria.run('#galleria',{
    extend:function(){
        this.setOptions({
            '_toggleInfo': 'false'
        });
    }
});

Try asking the question on the Galleria forum. The "extend" option would be a good solution to change specific options from Contao.

abias commented 10 years ago

For the record:

I was able to set the theme's custom options in the "extend" section of the plugins settings page in Contao with a string like this:

_locale: { show_captions: 'Bildbeschreibung anzeigen', hide_captions: 'Bildbeschreibung ausblenden', play: 'Diashow starten', pause: 'Diashow pausieren', enter_fullscreen: 'Vollbildmodus aktivieren', exit_fullscreen: 'Vollbildmodus beenden', next: 'Nächstes Bild', prev: 'Voriges Bild', showing_image: 'Bild %s von %s' }, _toggleCaption: false

I.e. it is not necessary to add "extend:function()..." like you have quoted it above. This didn't work for me.

Alex

lionel-m commented 10 years ago

Good to know. Thank you for the feedback !