Feature #61308
closed
Allow placeholder attribute
Added by Björn Jacob about 10 years ago.
Updated about 6 years ago.
Description
The extension tx_form should allow using the placeholder attribute. This was at some point discussed here #32594 (but at the wrong place). I'd really love to see this happening - at least on TS base and later on in the wizzard.
Example:
lib.contactForm = FORM_INT
lib.contactForm {
...
10 = TEXTLINE
10 {
name = name
label.value = Name
placeholder = Please enter your name.
}
...
}
Maybe a chance to make a contribution and implement this feature?
Okay Markus. We check the code and try to find a good solution ;)
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32699
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32702
IMHO the placeholder attribute should support stdWrap. To do something like the following.
lib.contactForm = FORM_INT
lib.contactForm {
...
10 = TEXTLINE
10 {
name = name
label.value.lang.es = Foo
placeholder.value.lang.es = Bar
}
...
}
I've checked the documentation and seen that the label tag is the only element which can be of type cObject. Maybe we should adapt the functionality of this element.
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Tested it and works like a charm. This should also be possible for FORM objects of type TEXTAREA.
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35217
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32738
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF