Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
delta: menu active css on cache mode
« previous
next »
Print
Pages: [
1
]
Author
Topic: delta: menu active css on cache mode (Read 5268 times)
maple
Full Member
Posts: 192
delta: menu active css on cache mode
«
on:
June 03, 2013, 10:06:24 »
Hi,
it seems that horitzontal principal top
menu active
css -background color- doesn't work properly on cache mode, at least in Firefox and Internet Explorer.
template: Delta
elxis 4.1
thanks
«
Last Edit: June 03, 2013, 11:33:27 by maple
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: delta: menu active css on cache mode
«
Reply #1 on:
June 03, 2013, 14:05:07 »
I think it is obvious why.
A cached item is something static which doesn't change until it s refreshed. Cache should be used in some modules, not all.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
maple
Full Member
Posts: 192
Re: delta: menu active css on cache mode
«
Reply #2 on:
June 03, 2013, 14:51:34 »
Hi,
Only should be used in some modules? then, it's not completely useful to have cache options into mod_menu parametres. Other modules automatically refreshed at new changes and take new files in cache folder.
thanks
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: delta: menu active css on cache mode
«
Reply #3 on:
June 03, 2013, 17:39:52 »
The menu is being refreshed on every click, you cannot use cache with that and have the active item change.
But if you don't want the current menu item to be highlight cache in module menu is perfect.
There are also can be different menu layouts were highlight is of no important and cache is good option too.
So, Elxis gives you the options to cache the menu output as it does for the most of the modules, whether you use or not the cache is your choice.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
maple
Full Member
Posts: 192
Re: delta: menu active css on cache mode
«
Reply #4 on:
June 04, 2013, 11:31:31 »
Hi,
Yes, I understand. A question: Is possible integrate (unify) the content of the modules/mod_menu_xx_en.php chached file with modules/mod_content_xx_en.php cached files conserving by this way the menu active css background color?
Or only unify the code line where the menu active is, saving some code?
thanks
«
Last Edit: June 04, 2013, 11:33:26 by maple
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: delta: menu active css on cache mode
«
Reply #5 on:
June 04, 2013, 12:13:18 »
Module content has nothing to do with module menu. Such "unification" cannot be done but even if it was possible it would n't solve your problem.
The only solution to "update" the cached output via javascript.
A js script could detect the current page and highlight the menu item which corresponds to the current page (note that it is not an easy script to build).
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
delta: menu active css on cache mode