Dashboard

Permalink
I'm converting a theme I built with Bootstrap V 3.0 I've added
<?php
defined('C5_EXECUTE') or die("Access Denied.");?>
<?php $this->inc('elements/header.php'); ?>

<?php
$u = new User();
$g = Group::getByName('Administrators');
if($u->isSuperUser()||$u->inGroup($g)){
?>
<div style="min-height: 45px"> </div>
<?php } ?>
to the header and

<?php Loader::element('footer_required'); ?>

to the footer and can not get the dashboard toolbar to comeup..
any ideas ??
Thanks
Bob

rdealmeida
 
WebcentricLtd replied on at Permalink Reply
Hi Bob,
don't know how much this will help but the most common reasons I've seen for the edit bar not showing up are as follows:

Loader::Element('footer_required'); is not being called
javascript conflicts
nasty word xml styles copied into content breaking the page render.

I'd check them in that order:

I can see you have the <?php Loader::element('footer_required'); ?> - the first thing I'd check is that this line is actually being included (is it in an /elements/footer.php and is it being called?

Do you have any extra javascripts in there? And if you change to another theme does the page render ok + give you the edit toolbar?

It might be easier to see any issues if you include the header and footer as well as the main php content for the page.
rdealmeida replied on at Permalink Reply
rdealmeida
Hi Andy;

I got it.. Had to use '$this->inc' instead of 'php Loader:'
and it worked fine..
Thanks for the help
Bob