Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-26 09:29:38

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

search form id or class

It’s been mentioned before and I wondered if it is being included in 4.0.7?

So that putting <search_input id=“search” /> will yield <form id=“search” method=“get” etc >

It would make this awkward element easier to style and would give an exact landing place for the accessibility div’s go_search without having to wrap the form in a div, or p etc.


BB6 Band My band
Gud One My blog

Offline

#2 2008-05-26 14:35:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: search form id or class

The <txp:search_input /> isn’t even helpful tag nor customizable. You could just hand write the search form with out that tag, and the output is exatly same plus probably faster.

Better way would add tags for search form’s elements, but it’s just waste of code too, as it still would output the same old code, and would still require some brainz how to add labels etc.

Maybe the whole <txp:search_input /> could be deprecated, and instead core example form called search_form and <txp:output_form form="search_form" /> in the template.

Offline

Board footer

Powered by FluxBB