TextPattern Hack - Tags in CSS April 7, 2006
Posted by Lucanos in : programming, php, textpattern , add a commentI 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:
- Download this file - css.zip
- Unzip it into the “/textpattern” subdirectory of your TextPattern installation.
(It will need to replace a file called “css.php” in order to work) - Enjoy!
Any problems, let me know.
TextPattern Plugin - les_rss2html
Posted by Lucanos in : programming, php, textpattern , add a commentMy first plugin… {sigh}.
Well, maybe not my first, but the first one I have decided to publicly release.
This one allows for RSS Feeds to be processed and inserted into a webpage, using replacement tags.
It’s actually a ported version of one I found from FeedForAll, who offer a free PHP script called RSS2HTML(download) which does this work. I simply modified it so as to use the TextPattern plugin format - for those people who would prefer to work with it that way…
Here it is. Help is included within the Plugin itself.