Duplicate or extend theme settings ?

Duplicate or extend theme settings ?

by Javier Cuadrado -
Number of replies: 2

Hello,

We are creating a new theme based on bootstrap.

I have just seen that there are two ways to set the settings.

Either by extending the Boost settings ( https://docs.moodle.org/dev/Creating_a_theme_based_on_boost#What_if_I_want_the_settings_too.3F ) or by duplicating ( https://docs.moodle.org/dev/Creating_a_theme_based_on_boost#Duplicate_the_settings_from_Boost ) them, but I don't understand what are the advantages and disadvantages of choosing one or the other method.

Could someone clarify this ?

Thanks !

Average of ratings: -
In reply to Javier Cuadrado

Ang: Duplicate or extend theme settings ?

by Preben Pedersen -
Hi,

My guess would be, that by extending the Boost settings, your settings might potentially come into a conflict with a future update of Boost, as Boost is a part of Moodle Core.

On the first link that you put in your post, it also states, that it is recommended to duplicate the settings you need:


Personally, i don't see any advantages in extending settings, when building a new theme, only a potential problem.
In reply to Preben Pedersen

Re: Ang: Duplicate or extend theme settings ?

by Javier Cuadrado -
Thanks a lot for your answer !

In that case we will duplicate the config !