Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis documentation
for users and developers.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
TemplateChooser module
« previous
next »
Print
Pages: [
1
]
Author
Topic: TemplateChooser module (Read 8512 times)
toumimi
Newbie
Posts: 13
TemplateChooser module
«
on:
August 10, 2009, 23:41:48 »
Hi guys,
I am now using module TemplateChooser to allow users to select their templates throw a select input.
It works great except it is a conflict with static caching system (i think it's that)
So I change the template, but to see modifications, I am forced to open another link to see modifications.
Then, when I return to the page, template has not been changed.
Additionnaly, after playing with it, I saw that content (including templates list) is not updated.
So how can I solve that ? Does I have to disable static caching or configure it (not done yet)
or is there another solution
Thanks in advance..
Florian
Logged
toumimi
Newbie
Posts: 13
Re: TemplateChooser module
«
Reply #1 on:
August 11, 2009, 00:07:32 »
I saw
here
that I can use cacheregen parameter via GET or POST method,
so probably I can add an hidden field in the form module, but is there another way to achieve it without modifying the module ?
Okay, so I tried the hidden field and it is working, but as I expected, it did not regenerate other pages which still have their theme..
Nobody got an idea ?
«
Last Edit: August 11, 2009, 00:11:40 by toumimi
»
Logged
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: TemplateChooser module
«
Reply #2 on:
August 11, 2009, 06:52:48 »
as far as know url with
mos
message are not cached....
index.php?
mos
_change_template=okto
Logged
ks-net.gr
toumimi
Newbie
Posts: 13
Re: TemplateChooser module
«
Reply #3 on:
August 11, 2009, 16:25:57 »
I have retested and problem is still here...
By using my hidden field, new style is instantly refreshed, as it should, so it's not the problem...
But when I change the template into a page, go to another, change the template and return to the first one,
its template is the first I set, whereas on all other pages, last template is well applied...
So, if I change template on several pages, I get a website with a template per page which is not what I wanted :'(
Have you got an explanation ?
Logged
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: TemplateChooser module
«
Reply #4 on:
August 12, 2009, 00:04:32 »
static cache was implement just before 1-2 months... maybe there are some things to check-improve ...
have you tried basic cache?
if you directly access tpls.. like i wrote above.. ? have you tried
Logged
ks-net.gr
toumimi
Newbie
Posts: 13
Re: TemplateChooser module
«
Reply #5 on:
August 13, 2009, 16:30:22 »
I have tried your solution, and problem is still here.
What you suggested me correspond with what I did => can apply template immediately.
Problem is that pages saved statically are not refreshed (before time given in administration).
So if template is changed and I come back to a page, then an old page is render (old content and style).
I think that it cannot be used with templatechooser because of the time between refresh.
If I set a lower time, then I don't think it would be optimized..
So finally, I choose to use basic cache.
An improvement could be to refresh all pages when a template modification is triggered...
Anyway, thanks for your help
Florian
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: TemplateChooser module
«
Reply #6 on:
August 18, 2009, 10:24:08 »
Static cache has a number of advantages and some disadvantages. It was built for heavy loaded web sites, not for any site. If you force all pages to be regenerated each time someone changes the template then the site will become slower than if you did not used static cache. So, you should either disable static cache or disable the change template feature. Note that the change template feature should be used in demo sites, I do not recommend using this module in normal sites. 99.99% of the sites have been built for a single template and by changing the template the site appearance breaks. So it is better to have 1 good template. Your site visitors will match this template with your site. If you have multiple templates your site looses its personality.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
toumimi
Newbie
Posts: 13
Re: TemplateChooser module
«
Reply #7 on:
August 18, 2009, 17:11:41 »
Quote
So it is better to have 1 good template. Your site visitors will match this template with your site
You're right. But allowing a user to choose a template can satisfy him if he doesn't like the first one (for any reason
).
So he chooses his template and keep it always and match it to my site.
Of course, I can use the same template but allowing several colors for the same theme (with small modifications in css or images).
I will see after some weeks. For the moment, I was just trying to use this functionnality.
Florian
Logged
toumimi
Newbie
Posts: 13
Re: TemplateChooser module
«
Reply #8 on:
August 18, 2009, 18:00:56 »
Hum. Come back again with a strange problem.
Maybe you can explain me why a webpage still shows with a template whereas others show another one ?
Does this really save a template per/page and stay until I set a new one
More informations :
- I completely disabled the cache from administration
- I deleted saved cache to be sure
- I deleted browser cache to be sure sure.
Page still displays with another template.
Is this a normal behaviour and can I change this ?
Florian
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: TemplateChooser module
«
Reply #9 on:
August 18, 2009, 18:56:55 »
It is normal if you have assigned a different template to a page.
Administration -> Site -> Templates manager -> Site templates.
Check if you have assigned a template to a menu item.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
toumimi
Newbie
Posts: 13
Re: TemplateChooser module
«
Reply #10 on:
August 18, 2009, 20:24:31 »
No sorry.
I know this feature but no template is assigned at all.
I don't understand more than you
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
TemplateChooser module