Code Monkey home page Code Monkey logo

Comments (5)

lionel-m avatar lionel-m commented on June 21, 2024

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".

from galerie.

abias avatar abias commented on June 21, 2024

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?

from galerie.

lionel-m avatar lionel-m commented on June 21, 2024

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.

from galerie.

abias avatar abias commented on June 21, 2024

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

from galerie.

lionel-m avatar lionel-m commented on June 21, 2024

Good to know. Thank you for the feedback !

from galerie.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.