[TYPO3-dev] indexed search: where is the css template?
Robert Markula
robert.markula at gmx.net
Mon Mar 20 17:16:55 CET 2006
Michael Stucki wrote:
(...)
>> You could provide two templates with indexed_search: One table-based and
>> one table-less. To be as compatible as possible I could rework my
>> template draft so the layout is as close as possible and the css tags
>> are the same.
>
> That would be fine with me.
(...)
Hi Michael,
I have a problem with the CSS based template I'm working on.
To link a label with the appropriate form field [1], I have to convert
the *classes* of form fields to *ids* (like
'class="tx-indexedsearch-searchbox-sword sword"' to
'id="tx-indexedsearch-searchbox-sword sword"').
The problem now is that spaces are not allowed in id's.
I would really like to use labels (and link them with the fields), as
they are
(1) The semantically correct way to connect fields with field descriptions,
(2) Enhance usability (just click on the label and the field is
automagically selected) and
(3) The rule for accessible forms is to connect the labels with the
appropriate form fields.
Can you (or anybody else) give me a hint on how to proceed?
Regards,
Ro
[1] Example:
<label for="tx-indexedsearch-searchbox-sword">###FORM_SEARCHFOR###</label>
<input type="text" name="tx_indexedsearch[sword]"
value="###SWORD_VALUE###" id="tx-indexedsearch-searchbox-sword" />
More information about the TYPO3-dev
mailing list