overriding concrete/authentication/concrete/form.php

Permalink
Hi Everyone
First of all, a huge compliment to the core developers. You did a great job with c5-5.7!!
Now, my problem:
I'd like to do a simple change on the login-form.
From:
<input name="uName" class="form-control col-sm-12"
               placeholder="<?php echo Config::get('concrete.user.registration.email_registration') ? t('Email Address') : t('Username')?>" />

to
<input type="text" name="uName" class="form-control col-sm-12"
               placeholder="<?php echo Config::get('concrete.user.registration.email_registration') ? t('Email Address') : t('Username')?>" />


I tried to copy the form to the application/authentication folder, but no success.
Thx for helping

daenu
 
daenu replied on at Permalink Best Answer Reply
daenu
OOOOh stupid me!

The overriding folder isn't
application/authentication
but
application/authentication/concrete


Sry for wasting some bytes ;-)
bitvision replied on at Permalink Reply
hi,

have you also tried to do that in a package? If that did work for you I would be very interested in your solution.

Thanks
Lars
creatingweb replied on at Permalink Reply
creatingweb
I would be interested as well in a solution for this.
daenu replied on at Permalink Reply
daenu
Hi
No I didn't try overriding core classes in a package, sry
McArtney82 replied on at Permalink Reply
This didn't work for me, I did exactly what you've said you've done, moved form.php to application/authentication/concrete and change one line of text in the file. It didn't work. If anyone has any thoughts please share as at the moment the only way I can change what I need to in my application is to edit the core which is a bit of a longer term issue for my project.
daenu replied on at Permalink Reply
daenu
What are your cache settings? Did you empty the cache?
MrKDilkington replied on at Permalink Reply
MrKDilkington
Some core classes may be designed not to be overridden in packages.

The following link has an explanation of why something like this would be in place.
https://www.concrete5.org/community/forums/customizing_c5/how-to-cus...