Feature #12909
Make position of jQuery Error messages configurable with TypoScript
| Status: | Resolved | Start date: | 2011-02-09 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 0 |
Description
Thx to Stefan Galinski
History
Updated by Stefan Galinski over 2 years ago
You can use the following typoscript snippet to change the position. Please note that the patch also introduces powermail prefixed error classes to be more flexible while styling your form.
page.footerData.31320 {
5.value (
position: 'bottom left'
)
}
Updated by Stefan Galinski over 2 years ago
Updated by Alex Kellner over 2 years ago
- Status changed from New to Accepted
Updated by Stefan Galinski over 2 years ago
This update separates the configuration code from the pseudo onReady event. It didn't worked for IE7 and below and if you moved the code to the head.
New configuration example:
page.footerData.31319 {
10.value (
position: 'bottom left'
)
}
Updated by Alexander Grein over 2 years ago
- Status changed from Accepted to Resolved
Position (and look) can now be changed by:
lib.powermailjs.10 {
value = position: 'center right', offset: [0,0], message: '<div></div>'
}
[userFunc = user_powermailOnCurrentPage] && [userFunc = user_powermailCheckT3jquery(false)]
page.jsFooterInline.10 < lib.powermailjs
[end]
[userFunc = user_powermailOnCurrentPage] && [userFunc = user_powermailCheckT3jquery(true)]
page.31320.40.jsdata.cObject < lib.powermailjs
[end]
Updated by Stefan Galinski about 2 years ago
Hi,
Könntet ihr noch die CSS-Klassen für die Fehler anpassen/hinzufügen? Derzeit lässt sich das so nur etwas unvorteilhaft stylen, da die Fehler immer im TopLevel des DOM abgelegt werden und die Eingabefelder keine einheitlich Fehlerklasse besitzen.
messageClass: 'tx-powermail-pi1_error',
errorClass: 'tx-powermail-pi1_errorField'