Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi,

I have 3 editable areas on a page. When I edit any of these, or delete all the content and press 'save', the cms editable part content is not deleted. When I go back into the editor all the text and image are still showing.

I have not updated the config for caching (set to 0)... I have also checked permissions on the PHP pages and cleaned out the browser cache.

It seems that this is a problem ONLY when you delete ALL the content of a editable region. Even if I leave just the <p> tag it still ignores the deletion? I did not want to get rid of the editable region, just delete the contents.
Hi,

This is not a cache issue.

It seems you have defined the editable regions within your template using the start tag and end tag and have enclosed some content between the two.
When defined like this, the enclosed content becomes the 'default' value for the editable regions and any region that has no content gets provided with this default value.
This might or might not be what you require.
You can get rid of the default text by simply removing all the contents enclosed within the tag pair and then making the mandatory visit to the template as super-admin.

Hope this helps. Please let me know.
Hi,

Yes I am a bit confused...

I am taking their existing website (with content) and putting Couch Tags around the content so that it shows what they currently have. They can then edit this. For example:

<cms:editable name='top_headline' type='richtext'>
<p>Discover the dynamic new you with simple safe rejuvenating and
anti-ageing treatments using Botox, Restylane
Juvederm, Medical skin peels and other
medical cosmetics.</p>
</cms:editable>


I thought that they could then edit the content above? Are you saying that the text (shown above) now forms the 'default' content and cannot be deleted?

If this is so, how do I take an existing website, and convert to Couch? I presumed that all did was to put editable tags around the existing content?

Just to add - this is the entire page - perhaps you can tell me if it's formatted correctly for CouchCMS please:

<?php require_once('ryc/cms.php'); ?>
<cms:template title='Main Index Page' />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Really Youthful Company | home page</title>
<meta name="keywords" content="Discover the dynamic new you with simple safe rejuvenating and anti-ageing treatments using Botox, Restylane, Juvederm, Medical skin peels and other medical cosmetics. ">
<meta name="description" content="Discover the dynamic new you with simple safe rejuvenating and anti-ageing treatments using Botox, Restylane, Juvederm, Medical skin peels and other medical cosmetics. ">
<link href="./css/style3.css" rel="stylesheet" type="text/css">
</head>

<body>

<div id="container">
<div id="masthead">
</div>
<img alt="" src="./images/logo.gif" width="630" height="315" />

<div id="page_content">

<cms:embed 'topmenu.html' />

<div id="content">

<cms:editable name='top_headline' type='richtext'>

<p>Discover the dynamic new you with simple safe rejuvenating and
anti-ageing treatments using Botox, Restylane
Juvederm, Medical skin peels and other
medical cosmetics.</p>
</cms:editable>

<cms:editable name='main_content' type='richtext'>
<p>The Really Youthful Company is dedicated to bringing you the
best in medical cosmetics.<p>
<img alt="Abby Barker in uniform" longdesc="Really Youthful Company makes you beautiful in many many ways" src="./images/abs_in_uniform.jpg" width="250" height="350" />

<p>Abby Barker RGN After training at Addenbrookes, Cambridge, The Westminster and Great
Ormond Street I have worked as a Registered Nurse for almost 30
years. I have a wide experience including Ward Management,
Domicilliary Care and&nbsp;more recently&nbsp;in General Practice.</p>

<p>I have undertaken an Aesthetics Practioners course with You are
Beautiful, a company who offer ongoing training and support and who
evaluate and reaccredit their Practioners every year.</p>

<p>I am thrilled to be working as an autonomous fully qualified
Practioner and am delighted to offer a very flexible&nbsp;service to my
clients in the environment you choose, whether that be within your
own home or in a salon.</p>

<h2>Professional and convenient service</h2>

<p>All treatments are administered by fully qualified nurse Abby Barker
in a salon or at your home.</p>

<p>Abby offers a pre-treatment consultation and a two week post treatment
follow up included in the treatment cost, to ensure absolute satisfaction.</p>

<p>Based in Newton Abbot, Abby covers the South Devon area and
is dedicated to bringing you the best in medical cosmetics.</p>

<h2>Setting high standards</h2>

<p>Trained and qualified under the well known and highly respected national company You Are Beautiful,
Abby is able to keep up to date with the latest treatments, which
have been fully researched.</p>

<p>She undertakes ongoing training and is re-accredited annually.</p>
</cms:editable>

</div>
</div>

<cms:embed 'footer.html' />
</body>
</html>

<?php COUCH::invoke(); ?>


Regards
Jonathan
Hi,
I thought that they could then edit the content above? Are you saying that the text (shown above) now forms the 'default' content and cannot be deleted?

They certainly can edit the content. It is just that they cannot leave the editable region completely blank in which case the original content is shown by default.

If the default behaviour does not suit you, please simply remove the enclosed text from the template. It has served to provide you the location that needs to marked as editable and can easily be removed.

For example, the template you pasted in could become -
<?php require_once('ryc/cms.php'); ?>
<cms:template title='Main Index Page' />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Really Youthful Company | home page</title>
<meta name="keywords" content="Discover the dynamic new you with simple safe rejuvenating and anti-ageing treatments using Botox, Restylane, Juvederm, Medical skin peels and other medical cosmetics. ">
<meta name="description" content="Discover the dynamic new you with simple safe rejuvenating and anti-ageing treatments using Botox, Restylane, Juvederm, Medical skin peels and other medical cosmetics. ">
<link href="./css/style3.css" rel="stylesheet" type="text/css">
</head>

<body>

<div id="container">
<div id="masthead">
</div>
<img alt="" src="./images/logo.gif" width="630" height="315" />

<div id="page_content">

<cms:embed 'topmenu.html' />

<div id="content">

<cms:editable name='top_headline' type='richtext' />



<cms:editable name='main_content' type='richtext' />



</div>
</div>

<cms:embed 'footer.html' />
</body>
</html>

<?php COUCH::invoke(); ?>
4 posts Page 1 of 1

Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 9 guests

cron