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

When I change an image via brose image, the image won't update, but when I double click on it and change it via the ckeditor it does change. The problem is serious, since I can't change the background image inside the ckeditor.
I have recently update my ckeditor to the latest version.
My code is as follows:
Code: Select all
<cms:template title='About'>
  <cms:editable name='banner_image_about' label='Banner Image 960X460' width='960' height='460' crop='1' order='1' type='image' />
  <cms:editable name='what_we_offer_group' label='What we offer 200X200' desc='Background image competencies and prospective clients' order='3' type='group' />
  <cms:editable name='speed' width='200' height='200' crop='1' type='image' />
  <cms:editable name='accuracy' width='200' height='200' crop='1' type='image' />
  <cms:editable name='cost_efficiency' width='200' height='200' crop='1' type='image' />
  <cms:editable name='privacy' width='200' height='200' crop='1' type='image' />
  <cms:editable name='personal_approach' width='200' height='200' crop='1' type='image' />
</cms:template>


<cms:editable name='about_main_section' label='Main section of the About Content' order='2' toolbar='full' height='1500' css='/Css/style.css' type='richtext'>
<!-- Content starts -->
<div role="main" class="ui-content ui-body-d nopadding swipleft">
<!-- Banner starts -->
<div class="smallpage">
    <img class="myBanner" src="<cms:show banner_image_about />" alt="About us"/>
</div>
,,,
<div class="whitepgl">
<div class="smallpage">
<h1>What we offer</h1>
<section class="ui-grid-d">
<div class="ui-block-a blockslsl block5" style="background-image:url(<cms:show speed />);"></div>
<div class="ui-block-b blockslsl block5" style="background-image:url(<cms:show accuracy />);"></div>
<div class="ui-block-c blockslsl block5" style="background-image:url(<cms:show cost_efficiency />);"></div>
<div class="ui-block-d blockslsl block5" style="background-image:url(<cms:show privacy />);"></div>
<div class="ui-block-e blockslsl block5" style="background-image:url(<cms:show personal_approach />);"></div>
</section>
</div>
</div>
</cms:editable>
It seems you are trying to fetch in contents from editable regions *within* another editable region -
Code: Select all
<cms:editable name='about_main_section' label='Main section of the About Content' order='2' toolbar='full' height='1500' css='/Css/style.css' type='richtext'>
<!-- Content starts -->
..
<div class="ui-block-a blockslsl block5" style="background-image:url(<cms:show speed />);"></div>
<div class="ui-block-b blockslsl block5" style="background-image:url(<cms:show accuracy />);"></div>
<div class="ui-block-c blockslsl block5" style="background-image:url(<cms:show cost_efficiency />);"></div>
<div class="ui-block-d blockslsl block5" style="background-image:url(<cms:show privacy />);"></div>
<div class="ui-block-e blockslsl block5" style="background-image:url(<cms:show personal_approach />);"></div>
..
</cms:editable>

That won't work the way you might be expecting.

You'll have to move the HTML containing <cms:show speed />, <cms:show accuracy /> etc. outside the <cms:editable> definition e.g.
Code: Select all
<cms:editable name='about_main_section' label='Main section of the About Content' order='2' toolbar='full' height='1500' css='/Css/style.css' type='richtext'>
<!-- Content starts -->
</cms:editable>

<div class="ui-block-a blockslsl block5" style="background-image:url(<cms:show speed />);"></div>
<div class="ui-block-b blockslsl block5" style="background-image:url(<cms:show accuracy />);"></div>
<div class="ui-block-c blockslsl block5" style="background-image:url(<cms:show cost_efficiency />);"></div>
<div class="ui-block-d blockslsl block5" style="background-image:url(<cms:show privacy />);"></div>
<div class="ui-block-e blockslsl block5" style="background-image:url(<cms:show personal_approach />);"></div>


Hope this helps.

Re:

Hi KK,

Thank you very much for the prompt response.
I really do like how CouchCMS works.

So based on the response you have given, I understand that there is no way of fetching editable regions inside another one. Please let me know if there is any way of doing this.

Thank you.

Best regards

Hello,
try this one viewtopic.php?f=8&t=7950#p13385
4 posts Page 1 of 1