Page 2 of 2

Re: New Theme Manager module

Posted: Wed Feb 01, 2006 4:54 pm
by kermit
calguy1000 wrote: Imported templates and stylesheet names are prefixed with the theme name, which stops most interference, and the system won't let you install a theme twice :)
i've been basically doing that now with my template and css names.. (prepending resource names with a 'theme' name), such as "theme_description_of_resource"

that could get interesting..

i have: aura_2col_layout, aura_2col_screen, aura_2col_print in one "theme"

i export it as a theme name of cmsms_aura10.

someone imports it and all the resources get tagged cmsms_aura10_aura_2col_xxxxx.

they repackage it (changing things or not) as a new theme. now we end up with

theme aura_reloaded_11, that when reimported by a third person, contains resource names like aura_reloaded11_cmsms_aura10_aura_2col_xxxxx

:o ;D

i gather you're anticipating a scenario like this and have planned ahead a bit, so the theme manager knows when a resource was imported via a theme and can strip out the old theme name on a re-export (as a different theme name)?

Re: New Theme Manager module

Posted: Wed Feb 01, 2006 5:00 pm
by calguy1000
uhhm.... no, hadn't thought of that
currently, I'm prefixing everything as "theme_name : template_name" or "theme_name : stylesheet_name"
I could easily strip everything before the delimiter off of te name when exporting though.
that may be a good thing to do.

Re: New Theme Manager module

Posted: Wed Feb 01, 2006 5:15 pm
by kermit
so i take it there's no database record of what goes with what? you're just relying upon prepending a theme name to the resources to identify what theme they go to. 

if you haven't read my long post txt yet, you might find something worthwhile in it (more possible snags, possible solutions, etc).

Re: New Theme Manager module

Posted: Wed Feb 01, 2006 5:26 pm
by calguy1000
No there's no database activity in the theme manager right now, well at least for keeping track of themes.

This is because of the ability in the stylesheet editor to atach a stylesheet from theme A to a template from theme B, or a default theme, or alternatively, to edit the associations, etc, change their order, etc. which would make exporting very difficult.  We also want to maintain that functionality.

Re: New Theme Manager module

Posted: Fri Mar 02, 2007 12:45 am
by vostefan
Hi Guys

I am cmsms newbie and can't get the theme manager working. It reports an error on the page ... something should be wrong on line 497 of the code in the ThemeManager.module.php file.

Does anyone know what I'm doing wrong???

Thanks