Current Theme?
Current Theme?
I'm a new user to Serendipity, so perhaps I'm missing something obvious. How do I know what theme I'm currently using?
-
undisclosed
- Posts: 4
- Joined: Thu May 31, 2007 10:26 am
Greetings,
I followed the directions provided here (click on disk icon) to
choose/install my desired (bundled) theme. But the Default
theme (carl_contest) is still the only theme that is used. I have
cleaned the browser cache and Forced reload. But no change.
I (and any users) are stuck with Only default (carl_contest) theme.
Looking at the code, it appears that the only way to change the
theme is to dump (back-up) the MySQL DB used. Open it in a
text editor and change to the desired theme. Save the file and
drop the DB and load the changes into the DB. This seems like
an awkward way to change the theme. Isn't there a better way?
Thank you for all your time and consideration.
--Chris
Answer:
Turn smarty off
Turns out the original (default) theme was still being cached by Smarty.
I can't seem to find the knob in Serendipity to manage any of the
Smarty options - cache control and such. Are there any?
Thanks in advance.
--Chris
I followed the directions provided here (click on disk icon) to
choose/install my desired (bundled) theme. But the Default
theme (carl_contest) is still the only theme that is used. I have
cleaned the browser cache and Forced reload. But no change.
I (and any users) are stuck with Only default (carl_contest) theme.
Looking at the code, it appears that the only way to change the
theme is to dump (back-up) the MySQL DB used. Open it in a
text editor and change to the desired theme. Save the file and
drop the DB and load the changes into the DB. This seems like
an awkward way to change the theme. Isn't there a better way?
Thank you for all your time and consideration.
--Chris
Answer:
Turn smarty off
Turns out the original (default) theme was still being cached by Smarty.
I can't seem to find the knob in Serendipity to manage any of the
Smarty options - cache control and such. Are there any?
Thanks in advance.
--Chris
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Caching from Smarty should be self-contained. Did you make sure the files in templates_c/ were always writable by Smarty? And make sure that if you edit files on the server the file's timestamp is changed, Smarty uses that for caching logic.
If you ever need to clear cache, just delete the files in templates_c/.
Smarty options are not disclosed to any s9y configuration, as those should be handled by the application itself.
Best regards,
Garvin
Caching from Smarty should be self-contained. Did you make sure the files in templates_c/ were always writable by Smarty? And make sure that if you edit files on the server the file's timestamp is changed, Smarty uses that for caching logic.
If you ever need to clear cache, just delete the files in templates_c/.
Smarty options are not disclosed to any s9y configuration, as those should be handled by the application itself.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
undisclosed
- Posts: 4
- Joined: Thu May 31, 2007 10:26 am
Thank you for taking the time to respond.
I know it's all about Smarty. I was just hoping that there might be
a knob within Serendipity for cache control.
Maybe I'll just make a delete/purge Smarty cache button.
Would you, or anyone else be at all interested in including this if I make it?
--Chris
OH. I forgot to answer; yes the template_c folder (and all other files/folders)
have the correct bits set.
Thanks again.
I know it's all about Smarty. I was just hoping that there might be
a knob within Serendipity for cache control.
Maybe I'll just make a delete/purge Smarty cache button.
Would you, or anyone else be at all interested in including this if I make it?
--Chris
OH. I forgot to answer; yes the template_c folder (and all other files/folders)
have the correct bits set.
Thanks again.