Hello there!
Sorry to bother you people again with this new thread, but I need to get this working. Although I posted this question already in another old thread I open this new one to have an adequate topic and in hope to get a hint.
I'm using MODx 2.2.15 with the Login-Package 1.8.1, which finally after lot of researching seems to be working fine - except one thing (for now)!
By using the Login.Register-snippet I'm not able to get any output off the "
reg.error.message"-placeholder.
I'm using this register-call:
[[!Register?
&postHooks=`mailAdmin`
&submitVar=`registerbtn`
&activationResourceId=`226`
&activationEmailTpl=`mailRegistrierung`
&activationEmailSubject=`Vielen Dank für Ihre Registrierung!`
&submittedResourceId=`231`
&usergroups=`Alumni`
&validate=`nospam:blank,
username:required:minLength=^6^,
password:required:minLength=^6^,
password_confirm:password_confirm=^password^,
email:required:email,
fullname:required`
&placeholderPrefix=`reg.`
]]
and inbetween my html-part I use this as the placeholder for the general-error-message:
But this doesn't contain anything, even if I try to submit the form with blank input-fields.
I also tried different variations of the placeholder, but none worked for me:
[[!+error.message]]
[[!+error.Message]]
[[!+error]]
[[!+errors]]
[[!+errors.message]]
[[!+errors.Message]]
[[!+errormessage]]
[[!+errorMessage]]
[[!+errorsmessage]]
[[!+reg.error.message]]
[[!+reg.errorsMessage]]
[[!+reg.error.Message]]
[[!+reg.error]]
[[!+reg.errors]]
[[!+reg.errors.message]]
[[!+reg.errors.Message]]
[[!+reg.errormessage]]
[[!+reg.errorMessage]]
[[!+reg.errorsmessage]]
[[!+reg.errorsMessage]]
When I'm using the different error-placeholders for the several input fields, I get the desired output when the validation of this input-field fails:
[[!+reg.error.fullname]]
[[!+reg.error.username]]
[[!+reg.error.email]]
[[!+reg.error.password]]
[[!+reg.error.password_confirm]]
But I need the general-error-message to be checked if it is empty. When it's not empty I want to show a div in a lightbox-way in cojunction with some javascript, which holds the error messages likes this:
[[!+reg.error.message:notempty=`
<div class="lightbox-error-message">
[[!+reg.error.fullname]]
[[!+reg.error.username]]
[[!+reg.error.email]]
[[!+reg.error.password]]
[[!+reg.error.password_confirm]]
</div>
`]]
This works fine for the login-snippet, as well as for any other snippet within the login-package, except this register-snippet.
So how do I get the reg.error.message-placeholder working?