Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.

Add possibility to configure theme-specific options #13

Closed
abias opened this issue Sep 6, 2014 · 5 comments
Closed

Add possibility to configure theme-specific options #13

abias opened this issue Sep 6, 2014 · 5 comments

Comments

@abias
Copy link

abias commented Sep 6, 2014

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
Copy link
Owner

lionel-m commented Sep 7, 2014

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
Copy link
Author

abias commented Sep 7, 2014

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
Copy link
Owner

lionel-m commented Sep 8, 2014

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
Copy link
Author

abias commented Sep 16, 2014

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
Copy link
Owner

Good to know. Thank you for the feedback !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants