How do you edit site registration.php to eliminate or change fields
Permalink 1 user found helpful
We need to change and remove several fields from our site registration form. How do we do that? I've see some discussions about opening the single page registration.php and making changes on it, but they aren't very clear in terms of the steps in the process.
Hi
This works but I have a related problem in that as soon as I apply the theme to the register page using the below , I lose any error messages on the form. Not sure if left anything out.
Have also tested this using the Elemental theme in the concrete directory and works ok so seems to be related to themes installed in the application directory.
application/config/app.php
This works but I have a related problem in that as soon as I apply the theme to the register page using the below , I lose any error messages on the form. Not sure if left anything out.
Have also tested this using the Elemental theme in the concrete directory and works ok so seems to be related to themes installed in the application directory.
application/config/app.php
Add "Loader::element('system_errors', array('error' => $error));" into your theme's view.php file just before $innerContent is displayed:
ex:
Loader::element('system_errors', array('error' => $error));
echo $innerContent;
ex:
Loader::element('system_errors', array('error' => $error));
echo $innerContent;
Thank you very much :)
<?php defined('C5_EXECUTE') or die("Access Denied."); $this->inc('elements/header.php'); ?> <main> <div class="container"> <div class="row"> <div class="col-sm-12"> <?php Loader::element('system_errors', array('error' => $error)); print $innerContent; ?> </div> </div> </div> </main> <?php $this->inc('elements/footer.php'); ?>
I believe it can be done this way.
5.7
Single Page
- copy register.php
concrete\single_pages\register.php
- paste into application\single_pages
application\single_pages\register.php
Single Page Controller
- copy register.php
concrete\controllers\single_page\register.php
- paste into application\controllers\single_page
application\controllers\single_page\register.php
- open register.php and change the namespace
namespace Concrete\Controller\SinglePage;
to
namespace Application\Controller\SinglePage;
5.6
http://www.concrete5.org/community/forums/themes/editing-system-pag...