FOoter
Permalink
I can't edit the footer on a new Concrete5 site
bottom of the home page displays:
Loader::element('footer_required');
Ver 5.3.1.1
Theme = Orange Sunset
bottom of the home page displays:
Loader::element('footer_required');
Ver 5.3.1.1
Theme = Orange Sunset
OK, so I think I have fixed this...but because I am new to the CMS I am not familiar with all the files and their locations yet - forgive me.
It turns out the fix is relatively simple. There is a line of code in two PHP files that has not been encased in <?php ?> tags. Simply encasing this line in these opening and closing tags fixes the issue...but then creates another one. See point 3 below.
There are three things to note:
1) I fixed this error in both the view.php and default.php files in my installation: C:\wamp\www\ConcreteCMS\packages\theme_orange_sunset\themes\orange_sunset
(I'm not sure yet why this error occurs in both files yet but it is broken in both places)
2) Look for this code in both files:
Notice that the PHP tags are not around it!
Simply enclose this code with these tags like this
Voila! problem fixed...or so I thought.
3) It turns out that once you fix this error, you lock yourself out of the dashboard and are not able to edit any of the pages because a line of code is not present that allows logging in. So in the footer div look for:
and replace it with:
I only did this in the default.php page so I am not sure if you have to add it to the view.php page also. I would imagine you should...but like I mentioned, I don't know the file structure yet.
Anyhow, now you will see a link on your template to login...
All's well. Hope this helps you out.
It turns out the fix is relatively simple. There is a line of code in two PHP files that has not been encased in <?php ?> tags. Simply encasing this line in these opening and closing tags fixes the issue...but then creates another one. See point 3 below.
There are three things to note:
1) I fixed this error in both the view.php and default.php files in my installation: C:\wamp\www\ConcreteCMS\packages\theme_orange_sunset\themes\orange_sunset
(I'm not sure yet why this error occurs in both files yet but it is broken in both places)
2) Look for this code in both files:
Loader::element('footer_required');
Notice that the PHP tags are not around it!
Simply enclose this code with these tags like this
<?php Loader::element('footer_required'); ?>
Voila! problem fixed...or so I thought.
3) It turns out that once you fix this error, you lock yourself out of the dashboard and are not able to edit any of the pages because a line of code is not present that allows logging in. So in the footer div look for:
<div id="footer"> copyright © 2006 your name | <a href="#">email@emailaddress</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a></div>
and replace it with:
<div id="footer"> <span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Sign In to Edit this Site')?></a></span> copyright © 2006 your name | <a href="#">email@emailaddress</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a></div>
I only did this in the default.php page so I am not sure if you have to add it to the view.php page also. I would imagine you should...but like I mentioned, I don't know the file structure yet.
Anyhow, now you will see a link on your template to login...
All's well. Hope this helps you out.
Thanks for the heads up. BTW - you can always reach the dashboard login withwww.www.domain.com/index.php/dashboard...
Jolson,
You're welcome and also I wish to thank YOU for your tip. Noted as very important info. :)
Cheers!
--
Drew
You're welcome and also I wish to thank YOU for your tip. Noted as very important info. :)
Cheers!
--
Drew
I will let you know if I find the error. Hopefully the Admin of the template itself will be able to find/fix this faster than I can.