Uneditable page
Permalink
Hi all,
I built a site for a friendhttp://www.ragsriches.co.uk, which is going well. However back when Concrete was at v5.3 I added a ticker to the home page in an html block.
This survived up until the v5.4.2 upgrade at which point it now only appears in IE7. Newer browsers do not display it. I was going to take a look at the code to see if I could figure out the problem, but I now find that the edit button does not work on the homepage. It is functional for all other pages, and I am logged in as administrator.
Has anyone got any idea how I can restore the ability to edit the home page?
Please PM me if you need a login to help diagnose the issue.
Thanks
Iain
I built a site for a friendhttp://www.ragsriches.co.uk, which is going well. However back when Concrete was at v5.3 I added a ticker to the home page in an html block.
This survived up until the v5.4.2 upgrade at which point it now only appears in IE7. Newer browsers do not display it. I was going to take a look at the code to see if I could figure out the problem, but I now find that the edit button does not work on the homepage. It is functional for all other pages, and I am logged in as administrator.
Has anyone got any idea how I can restore the ability to edit the home page?
Please PM me if you need a login to help diagnose the issue.
Thanks
Iain
You could be able to get to the dashboard directly
(yoursite.com/login and then yoursite.com/dashboard )
Once there, in the sitemap you can revert the version of the home page to a version before the html block with the ticker in it.
Another possibility is to hack the database using phpMyAdmin to find the content of the offending html block in the database and set the html block content to " ". On a brief inspection of C5 code, it looks like the table you want is 'btContentLocal' and the field name 'content' (table seems to be shared by at least both the content block and the html block). If you do this, backup the database first!!
If you try to add the block again, put the script inside something like:
This will stop it running in edit mode, so less likely to break edit.
(yoursite.com/login and then yoursite.com/dashboard )
Once there, in the sitemap you can revert the version of the home page to a version before the html block with the ticker in it.
Another possibility is to hack the database using phpMyAdmin to find the content of the offending html block in the database and set the html block content to " ". On a brief inspection of C5 code, it looks like the table you want is 'btContentLocal' and the field name 'content' (table seems to be shared by at least both the content block and the html block). If you do this, backup the database first!!
If you try to add the block again, put the script inside something like:
if (CCM_EDIT_MODE){ document.write('<p>SCRIPT INSIDE - EDIT AT EXTREME PERIL</p>'); } else { // YOUR SCRIPT HERE }
This will stop it running in edit mode, so less likely to break edit.
hi John,
I managed to remove the offending block using IE7. The question is, how do I find out what is in the block that was:-
a) Preventing it displaying
b) Preventing activation of edit mode
and fix it?
Iain
I managed to remove the offending block using IE7. The question is, how do I find out what is in the block that was:-
a) Preventing it displaying
b) Preventing activation of edit mode
and fix it?
Iain
The easy solution is to not worry.
If the ticker code does not need to interact with anything else on the page, you could just put it inside an iframe (script and html). This will protect the rest of the page from the content of the iframe.
There are a couple of free iframe add-ons in the marketplace.
If the ticker code does not need to interact with anything else on the page, you could just put it inside an iframe (script and html). This will protect the rest of the page from the content of the iframe.
There are a couple of free iframe add-ons in the marketplace.
I aw using a jquery news ticker. The html is:-
It appears that this doesn't want to work with concrete 5 for some reason (the code itself works with all browsers). The javascript is uploaded to my themes directory and is loaded in the theme template.
Iain
Javascript:-
js-news
js-site