com_users login format view?
-
28-05-2021 - |
Question
I would like to know what this code does in the joomla file
components/com_users/views/login/tmpl/default_login.php
<?php foreach ($this->form->getFieldset('credentials') as $field): ?>
<?php if (!$field->hidden): ?>
Also, how do I add the "remember me" option that is given with the login module? Thanks.
Solution
<?php foreach ($this->form->getFieldset('credentials') as $field): ?>
This section will get the all the fields from the "credentials" fieldset stored in:
components/com_users/models/forms/login.xml
<?php if (!$field->hidden): ?>
If the field being processed on the loop is not hidden .... then... it will be displayed I guess.
Regarding the "remember me" option, you can find a solution in the joomla forum:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow