We should have the ability to add options to the theme configuration page from within a theme. For example, if I provide a fixed and fluid version of my theme as an option, I'd like to add that kind of option to the theme configure page. It would seem this is not possible now, but it certainly should be!
Comments
Comment #1
jjeff commented++1
What he said.
-j
Comment #2
adrian commentedSomething like this would definately require the use of PHP. I could probably have hacked this together in phptemplate, but it would have been a hack.
What I want to do is extend the template.php loading across the whole of drupal,
and perhaps we could add a template_settings() function, which would allow you to have form elements, that get added to the
theme_settings variables, and can be accessed using theme_get_setting('setting_name'); ?
I am looking at improving a lot of the theme system in the next few weeks/months , and I will definately keep this in mind.
Comment #3
factoryjoe commentedEven if there was a super-simple syntax that I could toss around to get binary options added to my theme, that would help... I don't necessary like the idea of adding a new syntax, so I'll cancel this idea before I push on it, but doing something like this in template.tpl.php might be cool:
The result would be two radio buttons and a dropdown added to the theme configuration page. It should be that easy for me to add settings to my theme, which I can then access using if... then statements in any .tpl file: