Admin toolbar

Permalink
Is there anyway to make the toolbar push the main container down and stop it from obscuring a menu/nav I ave at the top of the page?


or can I make the pagewrapperclass move the page down?

Thanks:)

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi tonyswaby,

What is the web address of your site and please include a screenshot of your issue.

Is this a fixed menu or navigation? If so, you can conditionally change how your site displays when the toolbar is visible using CSS only or PHP.

CSS only:
- This approach uses CSS by targeting the "ccm-toolbar-visible" class that is added to the html element when the toolbar is visible.
http://www.concrete5.org/community/forums/customizing_c5/trying-to-...

PHP:
- This approach checks the permissions for the current page to see if the viewer can see the toolbar. If the toolbar is visible, you can conditionally show or hide elements and areas and add or remove HTML and CSS.
$cp = new Permissions($c);
if ($cp->canViewToolbar()) {
    echo "<h1>toolbar is viewable</h1>";
} else {
    echo "<h1>toolbar is NOT viewable</h1>";
}

- The current page object is available in page templates as $c. In block templates "$c = Page::getCurrentPage();" is used to get the current page object.