Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-22 10:56:41

Beto
New Member
Registered: 2009-10-13
Posts: 5
Website

Custom tags to inputs.

Hi. I would like to add an xhtml tag to <input> and <textarea> (related to placeholder webkit feature and javascript) but I don’t want to edit the core files of Textpattern. Is there a way to create a plugin that catches the output of the form methods? In that way I can insert my own tag without changing the core.
Thank you!

And, sorry for bad english.

—Albé

Last edited by Beto (2010-01-22 10:57:05)

Offline

#2 2010-01-25 02:38:23

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Custom tags to inputs.

rah_replace would inject a placeholder tag into txp:search_input

<txp:rah_replace from="input" to='input placeholder="tadah"'>
	<txp:search_input label="" wraptag="" />
</txp:rah_replace>

Note the single quotes around the replacing tags.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB