[TYPO3-content-rendering] More accessible forms: tt_content.search.30 / tt_content.login.20 in TYPO3 4.0rc1
Torsten Schrade
schrade at lineara.de
Mon Mar 13 13:47:04 CET 2006
Dear CRG,
now that we have the accessible mailform in tt_content.mailform.20 in
4.0rc1 - what keeps us from applying this to the searchform / loginform
as well?
At the moment those two forms are still table-based. But we could
override that in accessibility mode quite easily [1]. Check out the
result at http://stdwarp.org/index.php?id=185. This could be done for
the loginform as well.
What do you think?
Greetings,
Torsten
---
[1] the following TS goes in the accessibility section of
css_styled_content/static/setup.txt directly below the new mailform:
#change searchform to accessible mode
tt_content.search.30 < tt_content.mailform.20
tt_content.search.30 {
formName = searchform
layout = <div class="csc-searchform-field">###LABEL### ###FIELD###</div>
COMMENT.layout = <div class="csc-searchform-label">###LABEL###</div>
RADIO.layout = <div class="csc-searchform-field">###LABEL### <fieldset
class="csc-searchform-radio"
id="testform_radio">###FIELD###</fieldset></div>
LABEL.layout = <div class="csc-searchform-field">###LABEL### <span
class="csc-searchform-label">###FIELD###</span></div>
params.radio = class="csc-searchform-radio"
params.check = class="csc-searchform-check"
params.submit = class="csc-searchform-submit"
goodMess = {$styles.content.searchform.goodMess}
redirect >
recipient >
data >
dataArray {
10.label.data =
LLL:EXT:css_styled_content/pi1/locallang.php:search.searchWord
10.type = sword=input
20.label.data =
LLL:EXT:css_styled_content/pi1/locallang.php:search.searchIn
20.type = scols=select
20.valueArray {
10.label.data =
LLL:EXT:css_styled_content/pi1/locallang.php:search.headersKeywords
10.value =
pages.title-subtitle-keywords-description:tt_content.header
20.label.data =
LLL:EXT:css_styled_content/pi1/locallang.php:search.pageContent
20.value = tt_content.header-bodytext-imagecaption
}
30.type = stype=hidden
30.value = L0
40.type = submit=submit
40.value.data =
LLL:EXT:css_styled_content/pi1/locallang.php:search.searchButton
}
type.field = pages
type.listNum = 0
locationData = HTTP_POST_VARS
no_cache = 1
stdWrap.wrap = <fieldset class="csc-searchform"> | </fieldset>
stdWrap {
editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.search
prefixComment = 2 | Search form inserted:
}
}
More information about the TYPO3-project-content-rendering
mailing list