Custom 404 page
Permalink
I am having trouble customizing my 404 page, I modified site_theme_paths.php but it comes up with an error when I access the login page, saying that my theme does not include default.php or view.php when they are included. Also, it did not theme these pages at all as well. Have I made the default or view pages wrongly and What php mark-up must they include?
I have put that inside the template in the first place, but it didnt work
This does not work because the header and footer are in the template directory. How do I get a custom page_not_found?
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $this->inc('elements/header.php'); ?> <h1 class="error"><?php echo t('Page Not Found')?></h1> <?php echo t('No page could be found at this address.')?> <?php if (is_object($c)) { ?> <br/><br/> <?php $a = new Area("Main"); $a->display($c); ?> <?php } ?> <br/><br/> <a href="<?php echo DIR_REL?>/"><?php echo t('Back to Home')?></a>. <?php $this->inc('elements/footer.php');?>
You have to use the the snippet mentioned by Mnkras and then update the config/site_theme_paths.php file.
Here is the doc link:
http://www.concrete5.org/help/building_with_concrete5/developers/th...
Cheers,
Thomas
Here is the doc link:
http://www.concrete5.org/help/building_with_concrete5/developers/th...
Cheers,
Thomas
what are you doing?
/themes/view.php includes
/themes/elements/header.php and footer.php, so in view.php all you would put is.
<?php defined....blah
$this->inc('elements/header.php');
print $innerContent
$this->inc('elements/footer.php'); ?>
/themes/view.php includes
/themes/elements/header.php and footer.php, so in view.php all you would put is.
<?php defined....blah
$this->inc('elements/header.php');
print $innerContent
$this->inc('elements/footer.php'); ?>
only put that in the view.php
<root>/themes/themename/view.php
or ^ /packages