Textpattern CMS support forum
- New Member
- From: Buenos Aires
- Registered: 2010-07-27
- Posts: 2
hi, need help on plugin development basis..
Thanks! I´m newie on txp, sorry.
Re: hi, need help on plugin development basis..
I need to change the textarea with id “Body” in event article by other one, mantaining the origina behaviour..
Hi, and welcome. You’ll be needing to make your simple plugin using a callback then.
The best place to find the callbacks is in the Core Callback List. The one you’ll want to hook into is
event="article_ui", step="body". That’ll give you direct access to the markup that renders the Body textarea.
In your case you can either scrape through the contents of parameter #3 and replace the HTML you find there with your own stuff and return it, or you can just return your own code directly (or append to the existing content if you prefer).
Hope that gets you going in the right direction. Holler if you need any more help.
EDIT: Oh, and if you want a handy interface for creating plugins, try the ied_plugin_composer plugin
Last edited by Bloke (2010-07-27 21:09:20)