Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
(New user) Testing my installation of CouchCMS on a live site. Inline editing worked fine using two editable regions on a single page. Went to bed...next day with everything still on-screen and unchanged, the inline edit feature no longer worked. (Site & MySQL are on godaddy) The admin panel still worked fine, but clicking inline did nothing.

Restarted Chrome...nothing. Rebooted PC, tested in Chrome, Firefox & IE...nothing.

NOTE: I have inline edit working again by deleting all entries in (couch_)data_text, fields, fulltext, pages & templates via phpMyAdmin...and refreshing the page and admin panel (with some hiccups, but fairly easily overcome).

I'm wondering if others experience this kind of feature self-disabling? The reason I decided to use CouchCMS is for the inline editing (as I already have TinyMCE setup, but this is, or at least should be easier). Would be rather disappointing to setup many regions on multiple pages, only to have them go toast as to inline.

CouchCMS code used (example from one of the two text block regions, both setup the same)...below:

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='History Highlights' />
.
.
<cms:load_edit no_border='1' />
.
.
<!-- COUCH EDIT START -->
<cms:editable
name='angell_int'
label='Interview overview'
desc='Enter description of interview here'
toolbar='full'
type='richtext'>
<div <cms:inline_edit 'angell_int' /> >
.
content
.
</cms:editable>
<!-- COUCH EDIT END -->
.
(2nd region here, same except name='cauble_story')
.
<?php COUCH::invoke(); ?>
Hi Doug,

It seems the problem is you are trying to do two things at the same place -
1. define the editable region
2. declaring the editable region defined above as inline editable.

I think the problem can be solved by defining your editable regions separately within the <cms:template> block e.g. your code could now become as follows -
Code: Select all
<cms:template title='History Highlights' >
    <cms:editable
        name='angell_int'
        label='Interview overview'
        desc='Enter description of interview here'
        toolbar='full'
        type='richtext'>
            ..place here some default text if required ..
    </cms:editable>
   
</cms:template>

..

<!-- COUCH EDIT START -->
<div <cms:inline_edit 'angell_int' /> ><cms:show angell_int /></div>
<!-- COUCH EDIT END -->

All the other regions should also be defined within the <cms:template> block e.g. -
Code: Select all
<cms:template title='History Highlights' >
    <cms:editable
        name='angell_int'
        label='Interview overview'
        desc='Enter description of interview here'
        toolbar='full'
        type='richtext'>
            ..place here some default text if required ..
    </cms:editable>
   
    <cms:editable
        name='cauble_story'
        type='richtext'>
    />   
</cms:template>

Please try making this change and let me know if it helps,
Thanks, KK. Of course I won't know how well it worked until time passes.

I changed the code on the page such that the editable regions along with their content are now consecutively placed inside the template tag set (which is now converted to a tag pair). This all appears at the very top, just below the require_once line, and before the !DOCTYPE statement, etc.

Then in the content flow inside the body tags is just two 1-liner show statements per your example. I had read about that config in the tutorial, but it made my eyes go crossed.

The code-reconfigured page still displays as before (i.e.-everything was already working again when I did the reconfig), so I'm guessing how I did it was right.

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='History Highlights'>
<cms:editable
name='angell_int'
label='Interview overview'
desc='Enter description of interview here'
toolbar='full'
type='richtext'>
===1st instance actual content===
</cms:editable>
<cms:editable
name='cauble_story'
label='Story overview'
desc='Enter description of story overview here'
toolbar='full'
type='richtext'>
===2nd instance actual content===
</cms:editable>
</cms:template>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
.
.
</head>
<body>
===page layout, visible title content & php includes===
<div <cms:inline_edit 'angell_int' /> ><cms:show angell_int /></div>
<div <cms:inline_edit 'cauble_story' /> ><cms:show cauble_story /></div>
===additional content, closing tags, etc.===

Additional change after 1st retest:
I also placed the template tag pair, along with all editable tag pairs and related content in a standard php include file (history-couch-content.php) with nothing else in the include file. This also works. I thought it might help me see and remember how the content got on the page, instead of stacking everything above lines of code I would usually think of as "at the top". Original file is history.php...

Code: Select all
<?php 
   require_once( 'couch/cms.php' );
   include('history-couch_content.php');
?>
3 posts Page 1 of 1
cron