Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-04 15:36:55

Nichod
Member
Registered: 2005-06-06
Posts: 119

Search Input editing.

What is the best way to set this up? I know you can edit the source.

Like below. But how do you break it up?

form action=“url” method=“get” p input type=“text” name=“q” value=”“ size=“15“input type=“submit” value=“Search” p form

It seems like there has to be a better way. Using the Search_input form? But how?

Any help is appreciated.

Last edited by Nichod (2006-03-04 15:41:34)

Offline

#2 2006-03-04 16:29:43

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Search Input editing.

The search input can have all the attributes needed.

I think you would do :<code><txp:search_input section=“sectionname” label=“search” size=“15” button=“button text” /></code>
The problem with this is, that there is no attribute available wether you want a <code>< br /></code> tag inbetween your label and input element.
Of course as you sayd you can allways just hardcode it there, but that’s not so good for maintenance.
Alternatively you can put your tags in an output form.

I’ve made a small plugin for my own purposes that will give you a choice wether you want a br tag or no.

regards

Last edited by marios (2006-03-04 16:37:39)


⌃ ⇧ < ⌃ ⇧ >

Offline

Board footer

Powered by FluxBB