Hi All,
I’ve been trying to use the Login Snippet. I have used and I know how a couple of snippets e.g. WayFinder ... and how they work so don’t worry I’m not new to the concept + I usually get my problems solved with the Modx Docs up until this point.
I’ve checked out;
http://rtfm.modx.com//display/ADDON/Login
Which is the documentation for the Login Snippet and I’m trying to understand how exactly it works. The docs make a couple of assumptions ... lets’s start with the Login.Register Snippet ... there’s the example at this link;
http://rtfm.modx.com/display/ADDON/Register.Example+Form+1
I have a couple of questions about this example ...
<div class="register">
<div class="registerMessage">[[+error.message]]</div>
<form class="form" action="[[~[[*id]]]]" method="post">
<input type="hidden" name="nospam:blank" value="" />
<label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
<span class="error">[[+error.username]]</span>
</label>
<input type="text" name="username:required:minLength=6" id="username" value="[[+username]]" />
<label for="password">[[%register.password]]
<span class="error">[[+error.password]]</span>
</label>
<input type="password" name="password:required:minLength=6" id="password" value="[[+password]]" />
<label for="password_confirm">[[%register.password_confirm]]
<span class="error">[[+error.password_confirm]]</span>
</label>
<input type="password" name="password_confirm:password_confirm=`password`" id="password_confirm" value="[[+password_confirm]]" />
<label for="fullname">[[%register.fullname]]
<span class="error">[[+error.fullname]]</span>
</label>
<input type="text" name="fullname:required" id="fullname" value="[[+fullname]]" />
<label for="email">[[%register.email]]
<span class="error">[[+error.email]]</span>
</label>
<input type="text" name="email:email" id="email" value="[[+email]]" />
<br class="clear" />
<div class="form-buttons">
<input type="submit" name="registerbtn" value="Register" />
</div>
</form>
</div>
What’s
[[%register.username? &namespace=`login` &topic=`register`]] and also
[[+error.fullname]] .... for whoever will answer I’m not so much looking for what it does but I don’t understand what those types of tags are.
Do you put the snippet code and the html code in the same resource?
The
&activationResourceId=`12` points to resource with id 12, in a totally different context what does this result to?
Another thing that was not clear from the documentation is what fields are allowed into the user account in modx, is it just the usual or how exactly does the Register snippet work with modx, it was not clear how the data is captured ...
Hope I’m not asking for too much
The best was to solve this would be to update the documentation and add a little more information especially on the detail about the small things...
For Shaun (splittingred) ... I do appreciate your work. Really.