Hey, I have an issue that my field named "weight" is not being rendered. I've written it in a form and try to render it for a edit.php page but the field is not beeing rendered.
Code inside my member.xml Fileedit.phpYeah i know that the fields could be rendered at once but i have done it that way.
All Fields are being rendered without the "weight" field. I have no idea why this is happening. Are there maybe any field limits?
Code inside my member.xml File
Code:
<?xml version="1.0" encoding="UTF-8" ?><form> <field name="id" type="text" label="JGLOBAL_FIELD_ID_LABEL" default="0" class="readonly" readonly="true" /> <field name="name" type="text" label="COM_TEAMLA_TEAM_LIST_NAME" required="true" /> <field name="surname" type="text" label="COM_TEAMLA_TEAM_LIST_SURNAME" required="true" /> <field name="department" type="sql" query="SELECT id,name FROM #__teamla_departments" key_field="id" value_field="name" label="COM_TEAMLA_TEAM_LIST_DEPARTMENT" required="true" /> <field name="position" type="text" label="COM_TEAMLA_TEAM_LIST_POSITION" required="true" /> <field name="image" type="media" types="images" directory="teamla-team" label="COM_TEAMLA_TEAM_LIST_IMAGE" preview="tooltip" required="true" /> <field name="phone" type="text" label="COM_TEAMLA_TEAM_LIST_PHONE" /> <field name="email" type="email" label="COM_TEAMLA_TEAM_LIST_EMAIL" /> <field name="weight" default="0" type="text" label="COM_TEAMLA_TEAM_LIST_WEIGHT" required="true" /></form>
Code:
<?phpuse Joomla\CMS\HTML\HTMLHelper;use Joomla\CMS\Router\Route;HTMLHelper::_('behavior.formvalidator');HTMLHelper::_('behavior.keepalive');?><form method="post" name="adminForm" id="teamentry-form" class="form-validate" action="<?= Route::_('index.php?option=com_teamla&view=member&layout=edit&id=' . (int) $this->item->id); ?>"><?php echo $this->form->renderField('id'); ?><?php echo $this->form->renderField('weight'); ?><?php echo $this->form->renderField('name'); ?><?php echo $this->form->renderField('surname'); ?><?php echo $this->form->renderField('department'); ?><?php echo $this->form->renderField('position'); ?><?php echo $this->form->renderField('image'); ?><?php echo $this->form->renderField('phone'); ?><?php echo $this->form->renderField('email'); ?> <input type="hidden" name="task" value=""><?= HTMLHelper::_('form.token'); ?></form>
All Fields are being rendered without the "weight" field. I have no idea why this is happening. Are there maybe any field limits?
Statistics: Posted by DasShorty — Mon Sep 16, 2024 1:28 pm