You are not logged in.
I would really like to be able to remove the automatic <br> that is generated with this tag <txp:output_form form=“search_box” />
Can I please have the code or instructions to remove auto line breaks?
<txp:output_form form="search_box" />
If you have a tag like that, you should look inside your form ‘search_box’…
Form code = <div id=“search-box-wrapper”> <txp:search_input wraptag=”“ /> </div>
<txp:search_input wraptag=”“ /> is standard search tag. How can I define it to remove the output <label><br><input>?
At the moment I have just removed it with the CSS using #search-box-wrapper br (display:none).
Does the trick but there must be a better way. The <br> tag is hardcoded.
How can I define it to remove the output <label><br><input>?
Sorry, had to remove my bullsh…
<txp:search_input label="" wraptag="" />
Last edited by uli (2009-11-13 01:04:47)
That removes the “label” entirely. I still want it to say “Search” but remove the auto line break that is generated.
Thanks for the response all the same.
Because at the moment the
br is hardcoded, you have two options:
search_inputtag, but handcode the search box
BTW, this is the ‘Feature Ideas’ forum, for questions you’d better use How do I….
handcode the search box
That’s been my first guess (see “… my bullsh…”) until I saw that emptying the attribute values and deleting the button attribute could remove any unwanted elements. The
br is apparently inserted as soon as you enter a value for label. Didn’t know that.
bris apparently inserted as soon as you enter a value for label. Didn’t know that.
Neither did I. Still, if you want to keep the label, you’re stuck with the
br. I just thought of a third option: use rah_replace to replace it with a space ;)