[TYPO3-english] TYPO3 6.x caches and performance best practices for productive site

Krystian Szymukowicz k.szymukowicz at gmail.com
Sun Mar 3 10:02:03 CET 2013


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


More information about the TYPO3-english mailing list