Page 1 of 1

Template Chooser plug-in

Posted: Sun Oct 15, 2006 8:42 pm
by Elaine
I noticed the template chooser plug-in uses all of the templates from s9y and not templates I've edited. I'd like users to be able to choose their own skin, but

a) only have a small to moderately sized selection to choose from (not all 20 or so templates avail in s9y)
and
b) use the templates I have stored and edited, not the unedited versions available for downoad here.

Is there a way for me to change the template chooser to suit my purposes?

Posted: Sun Oct 15, 2006 9:30 pm
by carl_galloway
Disable spartacus and delete your downloadable templates list (package_templates.xml found in the templates_c folder of your installation).

The downside of doing this is that you won't have access to spartacus.

Or, agree with my feature request, :D

Could someone add a template selector to the plugin config screen (similar to the multilingual language selector) so that the blog owner is able to select the templates to be included in the sidebar drop-down.

Carl

Posted: Mon Oct 16, 2006 11:27 am
by garvinhicking
Hi!

You can easily do this:

1. Only install the Event Plugin Templatechooser. Not the sidebar one.

2. Create a custom HTML nugget with your own <select> code, that mimics the output of the Templatedropdown plugin. Something like this:

Code: Select all

<form action="/yourblog/index.php" id="theme_chooser" method="post">
<select name="user_template" onchange="document.getElementById('theme_chooser').submit();">
<option value="default">Default TEmplate</option>
<option value="kubrick">Kubrick</option>
<option value="hemmingway">Hemmingway</option>
</select>
</form>
HTH,
Garvin

Posted: Mon Oct 16, 2006 8:22 pm
by carl_galloway
See what happens when you start getting too involved in code, the brain starts thinking of code changes and forgets the obvious user solution, I need a break, I rewrote the contactform plugin for another user, and now I feel like all my brain wants to do is look at code - which isn't good because I'm not a programmer and I'm sure I'll just stuff things up if I keep thinking along these lines..

Posted: Mon Oct 16, 2006 9:17 pm
by judebert
Duh. Why didn't I think of that? Simple and easy, as usual, Garvin.