Edit mode within div container
Permalink
Hi.
So i am loading my content into a div via jquery. Everything works fine, just that if i am in editing mode, i can only edit the stuff on my default.php but if i click a link, the content is loaded but not editable. however If i call the content pages manually (../C5/index.php/content) i can edit them. So the problem seems to be that even if my default.php is in edit mode it doesnt pass this information to the loaded content page. Has anybody an idea how that can be solved?
So i am loading my content into a div via jquery. Everything works fine, just that if i am in editing mode, i can only edit the stuff on my default.php but if i click a link, the content is loaded but not editable. however If i call the content pages manually (../C5/index.php/content) i can edit them. So the problem seems to be that even if my default.php is in edit mode it doesnt pass this information to the loaded content page. Has anybody an idea how that can be solved?
It's going to be real complicated to make this editable, so what I do is do the editing via the regular pages and the viewing via ajax.
I don't think it's going to be possible to get editing working directly, but you might be able to customise the edit button so that if you click the edit button while viewing ajax content, it redirects the user to the /index.php/content URL in edit mode. You should be able to add some javascript to the ajax loading event which modifies the href of the toolbar edit button.
That's how I'd approach it anyway.