Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Trying to implement the new gallery feature...
- Following the steps I've created the php page, put in
Code: Select all
 <cms:template title='Gallery' clonable='1' dynamic_folders='1' gallery='1'>

   <cms:editable
      name="gg_image"
      label="Image"
      desc="Upload your main image here"
      width="500"
      show_preview='1'
      preview_height='200'
      type="image"
   />

   <cms:editable
      name="gg_thumb"
      assoc_field="gg_image"
      label="Image Thumbnail"
      desc="Thumbnail of image above"
      width='115'
      height='115'
      enforce_max='1'
      type="thumbnail"
   />
            </cms:template>

- Visited the page so it makes it in the CP
- Uploaded an image
- When visiting the page after uploading the image I receive the error:

ERROR: Tag: template Cannot make template non-clonable. Cloned pages exist.
Hi,

That is strange.
If your site happens to be online could you please grant me FTP/Couch admin access to it?
If not, please PM me the entire template(s) that you're using for implementing gallery. I'll try and duplicate the behaviour on my system.

Thanks.
PMed you
Hi,

Thank you.
I had a look at the template and as it happens there are two cms:template tags in the same template.
This line (probably you copy/pasted from an existing template) is present at the very top (second line).
<cms:template title='Home' />

and further down we get again
<cms:template title='Gallery' clonable='1' dynamic_folders='1' gallery='1'>..

Not hard to see that the first time you access the template, the first template tag sets the title to 'home' plus it sets the template to non-clonable (no 'clonable' attribute will evaluate to 'clonable=0') and then the second template tag overrides the first one and makes the template 'clonable'.

You add images to the gallery (i.e. create cloned pages of this template) and when you revisit this template (as super-admin) the first 'template' tag tries again to make the template non-clonable and Couch disallows it this time because there are cloned pages existing.

Please remove the first template tag and everything should begin to work as expected.

Thanks.
Yup that would do it, silly me, thanks :)
5 posts Page 1 of 1