jump to navigation

TextPattern Hack - Tags in CSS April 7, 2006

Posted by Lucanos in : programming, php, textpattern , trackback

I was recently put onto TextPattern, an Open-Source Content Management System, by one of my workmates. I have been working on a project for my employer, and, as I was already somewhat familiar with this CMS, we developed the internal website using this package.

One of the aspects of the TextPattern CMS which I found lacking, was that the CSS data, stored within the database, was unable to be dynamically changed and interacted with using the TextPattern markup language, plugins and/or PHP, even though that functionality is available within the page content and articles themselves.

As a result I have hacked the css.php file, used by TextPattern to render the CSS information.

Instructions:

  1. Download this file - css.zip
  2. Unzip it into the “/textpattern” subdirectory of your TextPattern installation.
    (It will need to replace a file called “css.php” in order to work)
  3. Enjoy!

Any problems, let me know.

Comments»

no comments yet - be the first?