You are not logged in.
Hi
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?
Thanks
Offline
hal.subs wrote:
<txp:output_form form="search_box" />
If you have a tag like that, you should look inside your form ‘search_box’…
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Hi
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.
Thanks
Offline
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)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Hi
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.
Offline
I really like to help but I don’t want to break you of thinking ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Because at the moment the br is hardcoded, you have two options:
search_input tag, but handcode the search boxBTW, this is the ‘Feature Ideas’ forum, for questions you’d better use How do I….
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Els wrote:
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.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
uli wrote:
The
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 ;)
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline