Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi Sir/Madam,

I have file name call index.php at below:

<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Slideshow' clonable='1' commentable='0' dynamic_folders='1'>
<cms:editable name='slide_image' label="Slide Show Image" crop='1' width='900' type='image' show_preview='1' required='1' order='1'/>
<cms:editable name='slide_link' label='Slide Show Link' type='text' order='2'></cms:editable>
</cms:template>
<?php COUCH::invoke(); ?>

After that, i change the file name index2.php.

My backend CMS will come out 2 Slideshow link. I just want 1 slideshow on my cms.

Kindly advise me.

Thanks.
Hi,

By renaming the physical template, you are effectively deleting the older template (index.php in your case) and creating a new one (index2.php in your case).

A deleted physical template does not get automatically removed from the admin-panel. However, if now you go to the index section, you'll see that Couch displays a 'Template missing' message and prompts you remove it from the admin-panel as well.

So what you are witnessing is expected behaviour.

The proper way of renaming template involves making changes to the database directly.
The following post discusses this in detail -
viewtopic.php?f=4&t=7232

Hope this helps.
2 posts Page 1 of 1