Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-05-30 10:17:48
- hdcool
- New Member
- Registered: 2006-02-01
- Posts: 7
Change existing TXP tags
Hi all,
I’ve searched a bit on the forum and the txp websites, but can’t really find the info I’m looking for.
Can someone point me in the right direction for how to create your custom <txp:> tags, and how to edit others?
Right now, I’m using <txp:section list /> but I’d need to edit it (put in some extra javascript).
So, I’d like to change the txp:section list tag, or even better, create my own, based on the existing one.
Advise is highly appreciated :)
(that’s right… i’m totally new to TXP, but it rocks ;-) And it looks so simple after messing for weeks with joomla..)
Last edited by hdcool (2007-05-30 10:19:27)
Offline
Offline
#3 2007-05-30 10:48:05
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: Change existing TXP tags
Also check out this sample chapter from the book Textpattern Solutions
It covers all the steps necessary to write, test, and release your own Textpattern plugins. It starts by walking you through the steps you need to take to set up a local plugin development environment. It then moves you through several plugin examples and references time-saving helper functions within the Textpattern source code that you can use as building blocks for your own plugins.
Offline
#4 2007-05-30 11:08:54
- hdcool
- New Member
- Registered: 2006-02-01
- Posts: 7
Re: Change existing TXP tags
Thanks guys! I’ll look into it :)
Offline
#5 2007-06-01 17:09:59
- hdcool
- New Member
- Registered: 2006-02-01
- Posts: 7
Re: Change existing TXP tags
Hey guys, I got my first custom plug-in working in a matter of a few hours. Thanks for the great links!
Do you also have some kind of API published somewhere to get to the nitty gritty workings?
I kinda had to look a lot at other plug-ins to see how they did some of the stuff. (Like mysql data stuff)
Offline
Re: Change existing TXP tags
The files in /textpattern/lib contain a lot of useful functions. Use the source, Luke!
Offline
#7 2007-06-01 17:20:11
- hdcool
- New Member
- Registered: 2006-02-01
- Posts: 7
Re: Change existing TXP tags
Ok, thanks!
And may the opensource be with you ;)
Offline
Pages: 1