Please note that you may have been redirected (you might like to make a note of the URL in the address bar of your browser and update accordingly) This is a permanent archvie but is no longer actively maintained. Please visit http://joshuaink.com for the latest updates.

Textpattern, clash of the plug-ins!

Saturday November 6, 2004

Having installed the style sheet switcher plug-in (described here), shortly followed by my hacked version of the zem_redirect plug-in (described here). I found that I was unable to get the style sheet switcher to work consistently, if you want a list of style options on every single page site wide, you are probably screwed but there is a solution to the problem.

There are two "types" of URL on this site one that goes something like - /article/13/rebuild-day-5-point-5 (for individual articles) and another that goes something like - /about/ (for sections). The style sheet switch works on this second example URL but not the first. The reason, it seems, is because it has that slash on the end, adding the necessary switch variable e.g. "?css=off" to this second URL does not seem to upset zem_redirect, so the following works "/about/?css=off", whereas "/article/13/rebuild-day-5-point-5?css=off" does not.

Clear as mud? Good, it was for me too.

Anyway to offer some sort of style sheet switching I created a new "section" called "style" and added my list of options. I now have the URL I need for switching to work i.e. /style/. It's not perfect but life is all about compromise!