Ich möchste gerne das man vor und Nachname als Pfichtfeld beim Registrieen angeben muss.
Ich bin nicht ganz so firm im iLch wie kann ich das realisieren?
Ich habe schon einmal in der application/modules/user/views/regist/input.php ein wenig was geändert:
<?php use Modules\User\Models\ProfileField; use Modules\User\Models\ProfileFieldTranslation; /** @var ProfileField[] $profileFields */ $profileFields = $this->get('profileFields'); /** @var ProfileFieldTranslation[] $profileFieldsTranslation */ $profileFieldsTranslation = $this->get('profileFieldsTranslation'); ?> <link href="<?=$this->getStaticUrl('js/tempus-dominus/dist/css/tempus-dominus.min.css') ?>" rel="stylesheet"> <?php include APPLICATION_PATH . '/modules/user/views/regist/navi.php'; ?> <form id="registForm" name="registForm" method="POST"> <?=$this->getTokenField() ?> <div class="regist card panel-default"> <div class="card-header"> <?=$this->getTrans('logindata') ?> </div> <div class="card-body"> <div class="row mb-3 d-none"> <label class="col-xl-2 col-form-label"> <?=$this->getTrans('bot') ?>* </label> <div class="col-xl-8"> <input type="text" class="form-control" name="bot" placeholder="Bot" /> </div> </div> <div class="row mb-3<?=$this->validation()->hasError('name') ? ' has-error' : '' ?>"> <label for="name" class="col-form-label col-xl-2"> <?=$this->getTrans('name') ?>: </label> <div class="col-xl-8"> <input type="text" class="form-control" id="name" name="name" value="<?= $this->originalInput('name') ?>" autocomplete="username" /> </div> </div> <div class="row mb-3<?=$this->validation()->hasError('firstname') ? ' has-error' : '' ?>"> <label for="first_name" class="col-form-label col-xl-2"> <?=$this->getTrans('firstname') ?>: </label> <div class="col-xl-8"> <input type="text" class="form-control" id="firstname" name="firstname" value="<?= $this->originalInput('firstname') ?>" autocomplete="firstname" /> </div> </div> <div class="row mb-3<?=$this->validation()->hasError('lastname') ? ' has-error' : '' ?>"> <label for="lastname" class="col-form-label col-xl-2"> <?=$this->getTrans('lastname') ?>: </label> <div class="col-xl-8"> <input type="text" class="form-control" id="lastname" name="lastname" value="<?= $this->originalInput('lastname') ?>" autocomplete="lastname" /> </div> </div>
Schaut dann so aus:

Er macht halt nix bzw trägt den Namen der Person nicht ein.
Wo und welche Änderungen muss ich noch machen??
verwendete ilch Version: 2.1.x
betroffene Homepage: fahrzeugveteranen-dreieich.de/