1
votes

I am trying to overwrite the form.php file for the 'concrete' authentification type. I can make it work if I place the form.php file in the /application/authentication/concrete directory, but not from within my theme package directory.

<?php foreach ($activeAuths as $auth): ?>
    <div data-handle="<?= $auth->getAuthenticationTypeHandle(); ?>" class="authentication-type authentication-type-<?= $auth->getAuthenticationTypeHandle(); ?>">
        <?php $auth->renderForm($authTypeElement ?: 'form', $authTypeParams ?: array()); ?>
    </div>
<?php endforeach; ?>

If I try to load another form (by replacing the second parameter in the renderForm method) nothing happens.

Any ideas how to make c5 aware of the override?

1
what is the exact path inside the package? - toesslab
What is $activeAuth? - toesslab
Path is the same as in the /application directory: /packages/package_handle/authentication/concrete - Jakob Fuchs
If you mean $activeAuths, that's the array containing all authentication types that are used on the site - Jakob Fuchs

1 Answers

1
votes

You can't. I have developed a package that needed to do that and it can't be overridden from a package. You have to do it from the application directory.

My package has an "install" option that copies the modified form from the package's directory to the application one.