Custom Settings Class On Theme Install

Custom Settings Class On Theme Install

by Mark McDermid -
Number of replies: 2

Hi folks,

I've created a theme for a school with a custom theme_x_admin_setting extends admin_setting  which I now have all working in the settings page with new theme_x_admin_setting ($name, $title, ...etc)

My problem is that on theme install the settings don't show up to immediately change (but moodle standard ones admin_setting_configstoredfile do.

Is there a way to get them to show up on install or do I just have to install and then head to the settings page to change them?

Average of ratings: -
In reply to Mark McDermid

Re: Custom Settings Class On Theme Install

by Michael Aherne -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Do you have default values set for them? If there are no defaults you'll have to set the settings after install.

In reply to Mark McDermid

Re: Custom Settings Class On Theme Install

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

"theme_x_admin_setting extends admin_setting"

Sorry, I don't recognise this way of adding a theme settings page. Have you looked at the way theme settings pages are usually created e.g.

    $ADMIN->add('themes', new admin_category('theme_flexibase', 'FlexiBase Settings'));


If you are creating a non-standard settings page that could explain why it is not acting the way the standard ones do.