Login Page
Permalink Browser Info Environment
How is it possible to adapt the login page to the theme. Adding
to the doesn't do the trick (completely). Because the header is missing.
to the
application/config/app.php
Type: | Ticket |
---|---|
Status: | In Progress |
Hi David,
thank you very much for your prompt reply! And by the way, I realy love your Modena-Theme.
Duplicating view.php and using it as login.php (with added header) unfortunately does not work. The login module is then no longer included. But what worked is to add the normal header to view.php. Does the view.php have a special meaning and should therefore not be changed? Or can I use this workaround without any problems?
best regards
thank you very much for your prompt reply! And by the way, I realy love your Modena-Theme.
Duplicating view.php and using it as login.php (with added header) unfortunately does not work. The login module is then no longer included. But what worked is to add the normal header to view.php. Does the view.php have a special meaning and should therefore not be changed? Or can I use this workaround without any problems?
best regards
Hi David,
Not a problem, and it's good to hear you are enjoying Modena.
It really depends on what add-ons you want to use as some of them may use view.php as its a wrapper for single pages, if there is a clash at all you may be able to write some conditional code to negate the issue, I found this thread in the forumhttps://archive.concretecms.org/community/forums/customizing_c5/sing... its a bit out of date now but I think some of the ideas will still be applicable, please let me know what you think.
Best regards
David
Not a problem, and it's good to hear you are enjoying Modena.
It really depends on what add-ons you want to use as some of them may use view.php as its a wrapper for single pages, if there is a clash at all you may be able to write some conditional code to negate the issue, I found this thread in the forumhttps://archive.concretecms.org/community/forums/customizing_c5/sing... its a bit out of date now but I think some of the ideas will still be applicable, please let me know what you think.
Best regards
David
Hi,
good idea! I changed the original view.php:
to:
so if a single-page needs the view.php without the header, it can be set with the "Disable Sub Page Banner" Attribute. Thank you for your help!
Best regards
David
good idea! I changed the original view.php:
to:
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php $this->inc('elements/sub-page-header.php'); ?> <?php if($c->getAttribute('disable_sub_page_banner') == true) : ?> <div class="hero-unit__spacer"></div> <?php else : ?> <div class="hero-unit-sub-page margin-bottom-100"> <div class="hero-unit-sub-page--overlay"></div> <div class="hero-unit-sub-page__content"> <div class="grid-row"> <div class="column-12 animated-parent animation-delay-1000"> <h2 class="animated animate__fade-in-down-short go"> <?php if ($c->getAttribute('disable_sub_page_name') == false) { $page = Page::getCurrentPage(); echo $page->getCollectionName(); } ?>
Viewing 15 lines of 34 lines. View entire code block.
so if a single-page needs the view.php without the header, it can be set with the "Disable Sub Page Banner" Attribute. Thank you for your help!
Best regards
David
Hi David,
No problem, glad you found a solution.
Best regards
David
No problem, glad you found a solution.
Best regards
David
Thanks for your purchase.
I believe that method uses view.php, you could duplicate view.php rename it to login.php and include the header and footer as you would in a normal page template, that route should then pick up the login page. I have to admit I am no expert on this, so if that does not work it may be worth asking in the general forum.
Best regards
David