Toolbar hidden in edit mode
Permalink 1 user found helpful
Does anyone know what I did wrong with this one. When I login and click "Return to Website" the page loads and creates a black space at the top of the page the size of the toobar but the actual toolbar is missing or hidden.
Here's my header code - this is in a header.php in the elements folder that is referenced in the default.php with a php includes:
Here's my header code - this is in a header.php in the elements folder that is referenced in the default.php with a php includes:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <?php Loader::element('header_required'); ?> <link href="<?=$this->getThemePath()?>/css/stylesheet.css" rel="stylesheet" type="text/css" /> <link href="<?=$this->getThemePath()?>/css/all.css" rel="stylesheet" type="text/css" /> <link href="<?=$this->getThemePath()?>/css/style.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" media="all" type="text/css" href="<?=$this->getThemePath()?>/dropdown.css" /> <!--[if lte IE 6]> <link rel="stylesheet" media="all" type="text/css" href="<?=$this->getThemePath()?>/dropdown_ie.css" /> <![endif]--> <script src="<?=$this->getThemePath()?>/js/prototype.js" type="text/javascript" charset="utf-8"></script> <script src="<?=$this->getThemePath()?>/js/effects.js" type="text/javascript" charset="utf-8"></script>
Viewing 15 lines of 35 lines. View entire code block.
It's probably prototype but basically start commenting out each line of javascript you are including until you find the file that is causing interference with Concrete5's edit bar.
Hi,
I was having the same problem, and it was my main jquery ref in the head that did it. Start by commenting out the jquery lines and I think it will fix it; did for me.
I was having the same problem, and it was my main jquery ref in the head that did it. Start by commenting out the jquery lines and I think it will fix it; did for me.
The same problem exists with MooTools.
So the Edit Bar is conflicting with both jQuery and MooTools! In this AJAXian world, that's a pretty big problem!
I can't believe I was lucky enough to stumble on this my very first time using Concrete5! :-)
There HAS to be a workaround solution.
– If I put the header code* BEFORE my MooTools.js link, I have no Edit Bar at the top but my MooTools slider gallery works fine.
– If I put the header call AFTER my MooTools.js link, I have an Edit Bar, but the MooTools slider gallery is broken.
So, whichever comes last takes precedence and cancels out the other.
*The header code I'm talking about is:
So the Edit Bar is conflicting with both jQuery and MooTools! In this AJAXian world, that's a pretty big problem!
I can't believe I was lucky enough to stumble on this my very first time using Concrete5! :-)
There HAS to be a workaround solution.
– If I put the header code* BEFORE my MooTools.js link, I have no Edit Bar at the top but my MooTools slider gallery works fine.
– If I put the header call AFTER my MooTools.js link, I have an Edit Bar, but the MooTools slider gallery is broken.
So, whichever comes last takes precedence and cancels out the other.
*The header code I'm talking about is:
<? Loader::element('header_required'); ?>
concrete5 actually uses jquery so there's no need to instantiate it again. obviously, that will cause issues.
If you need to use a different js library, you should consider disabling the jquery calls when not in edit mode, and disabling your library when in edit mode..
here's some instructions on that:
http://www.concrete5.org/help/building_with_concrete5/developers/tu...
If you need to use a different js library, you should consider disabling the jquery calls when not in edit mode, and disabling your library when in edit mode..
here's some instructions on that:
http://www.concrete5.org/help/building_with_concrete5/developers/tu...