Edit Page button not working
Permalink 1 user found helpful
I have a problem on a site I'm putting together. All of a sudden, the Edit Page and Add Page buttons don't work on one page only. The Dashboard button works though, and when I roll over the Edit and Add buttons, the colour changes.
The odd part is this page was working the last time I worked on it which was just a couple of days ago. I went into the dashboard and removed a few recent versions, still the same problem. I don't think it's the theme because I used the same page type on quite a efw other pages, and they don't have the problem. Cache is turned off (cleared it as well, just in case).
Any idea what would interfere with those two buttons on a particular page? Has anyone had this happen before?
The odd part is this page was working the last time I worked on it which was just a couple of days ago. I went into the dashboard and removed a few recent versions, still the same problem. I don't think it's the theme because I used the same page type on quite a efw other pages, and they don't have the problem. Cache is turned off (cleared it as well, just in case).
Any idea what would interfere with those two buttons on a particular page? Has anyone had this happen before?

Just an update, the link for Edit Page and Add Page is "javascript:void(0)" on the toolbar for some reason. There is a javascript thing on the page, but it worked fine before. I'd love to go in and temporarily take it out to see if that's the culprit, but as I said... I can't edit the page. Is there another way of editing it, like directly in the database or something?
This seems to be a big problem at the moment, I have had the same issue with my whole site
http://www.concrete5.org/community/forums/customizing_c5/edit-and-a...
http://www.concrete5.org/community/forums/usage/edit-page-andamp-ad...
http://www.concrete5.org/community/forums/customizing_c5/edit-and-a...
http://www.concrete5.org/community/forums/usage/edit-page-andamp-ad...
I had a bit of javascript in my template which was causing the problem, which was weird because it worked fine before. My only guess is that I may have upgraded to 5.4.2 which caused the problem. I took it out, finished updating the page, and put it back as a workaround.
What was the problem, do you have a clue what sort of Javascript event?
It was this:
I have a very large page with data display tables that I needed to collapse and open on click. Like I said, this used to work no problem.
<script> $(function() { $('tr.parent') .css("cursor","pointer") .attr("title","Click to expand/collapse") .click(function(){ $(this).siblings('.child-'+this.id).toggle(); }); $('tr[@class^=child-]').hide().children('td'); });</script>
I have a very large page with data display tables that I needed to collapse and open on click. Like I said, this used to work no problem.
Hi,
Is it because C5 now uses jquery 1.6.2?
I had issues with a slider that only worked with 1.5.1 for some reason.
Is it because C5 now uses jquery 1.6.2?
I had issues with a slider that only worked with 1.5.1 for some reason.
Hmm, have we got someone who knows about Jquery with concrete extensively?
Is there any way of disabling JavaScript in the theme whilst logged in, such as you can for if its in edit mode*? My problem is probably the slider on my site as well.
*Like this...
*Like this...
<?php if(!$c->isEditMode()) { ?> <script type="text/javascript" src="<?=$this->getThemePath()?>/elements/jq.plug.settings.js"></script> <?php }
Yes, you can do something like this:
<?php if ( isLoggedin() == FALSE ) { code goes here ) ; } ?>
Great thanks, ahh but I just tried that and my site says server error, has that got anything to do with this?
I probably have that code wrong, but this thread should show some light on how to write it properly:
http://www.concrete5.org/community/forums/customizing_c5/determine_...
http://www.concrete5.org/community/forums/customizing_c5/determine_...
Perfect! I cant thank you enough, I simply used
I dont know how to mark your answer as best any more :S
**Ohh Ive just realised its your question lol
<?php $uinfo = new User(); if($uinfo->IsLoggedIn()){ ?> <!--Logged In--> <?php } else { ?> <script type="text/javascript" src="<?=$this->getThemePath()?>/elements/jq.plug.settings.js"></script> <?php } ?>
I dont know how to mark your answer as best any more :S
**Ohh Ive just realised its your question lol
Same problem here, no solution still. It only happens on home page.
Is there some other JavaScript included? Like Lightbox or something? In my case, that led to the javascript void(0) error. Different versions of the JQuery library may cause the problems.