W dniu 2013-03-03 08:46, Domi pisze:
Hi Krystian
Yes. On clearcache. If you have the same dropdoen menu for the whole
website then you need to clear cache for whole webbache on menu change
anyway. So lifetime = 0 is ok here.
Ok but how is it with the ACT and ACTIFCUR special markup for showing
the current page with different css? Would this be possible?
As I said ealier in my posts this has to be done with Javascript.
I wrote smth like this for my site:
initActiveLinks:function () {
var urlSplitted = window.location.pathname.substring(1).split('/');
var urlToCheck = [];
$.each(urlSplitted, function (index, value) {
urlToCheck.push(value);
if (value.length) {
$('#main-menu a, .footer-box a').filter(function() {
var match = '^' + urlToCheck.join('/') + '/$';
return $(this).attr('href').match(new RegExp(match, "i"));
}).addClass('active');
}
})
},
--
grtz
Krystian Szymukowicz
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english