Jquery 1.3
Permalink
Hi guys,
Great CMS i have to say.. I have an issue though, when including the jquery framework as below: <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
it seems to remove the concrete5 taskbar on the top of the page(used for editing). Therefore how i can implement this as i need jquery to run a few of of my scripts.
cheers
Ritch
Great CMS i have to say.. I have an issue though, when including the jquery framework as below: <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
it seems to remove the concrete5 taskbar on the top of the page(used for editing). Therefore how i can implement this as i need jquery to run a few of of my scripts.
cheers
Ritch
probably because we're already using jQuery in concrete5 - you shouldn't have to call it.
thanks for the quick reply.... i would prefer to have jquery in there, because i'm assuming once you finish editing, it will remove jquery framework...is it possible to wrap the <script>...</script> in a if (!$c->isEditMode()) { ?> statement? Or will jquery still be read?
cheers,
Ritch
cheers,
Ritch
Jquery 1.3.2 is always available throughout the site, regardless of in edit mode or not.
$c->isEditMode() works well for when you are actually in edit mode, but you need something a bit more specific to see when the toolbar is up.
Either way, the same version of jQuery is used and loaded regardless of if a page is in edit mode, the toolbar is up, etc.
$c->isEditMode() works well for when you are actually in edit mode, but you need something a bit more specific to see when the toolbar is up.
Either way, the same version of jQuery is used and loaded regardless of if a page is in edit mode, the toolbar is up, etc.
Thanks for your help guys!