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

I'm new to Couch so I'm guessing I've done something silly!
I have an issue where text is displaying twice on the page, my template looks like this:
<cms:template title='Home' order='1'/>
<cms:editable name='hero' label='homepage hero' desc='The first section on the homepage' type='group' order='1' >
<cms:editable name='hero_image' label='hero image' desc='The background image' type='image' grop='hero'/>
<cms:editable name='hero_line_1' label='hero text line 1' type='text' group='hero' />
<cms:editable name='hero_line_2' label='hero text line 2' type='text' group='hero' />
<cms:editable name='hero_cta' label='hero call to action text' type='text' group='hero' />
<cms:editable name='hero_cta_link' label='hero call to action link' desc='eg:contact or about-us etc' type='text' group='hero' />
</cms:editable>
<cms:editable name='text_home' label='page content' type='richtext' order='2' />
<cms:editable name='page' label='Page SEO' desc='Override the default SEO Meta Data' type='group' order='99'>
<cms:editable name='meta_title' label='Meta Title' type='text' group='base_seo' />
<cms:editable name='meta_description' label='Meta Description - 180 words max' type='textarea' group='base_seo' />
</cms:editable>

There are 2 x groups, and this: <cms:editable name='text_home' label='page content' type='richtext' order='2' />
This outputs on the page when I call it, but it also appears above the doctype declaration. If I turn it into a group, it works.
What am I doing incorrectly?
Thanks for any help.
Doh! I just figured it out.

For anybody else who has this issue, I changed the template tag so it wasn't self-closing and added </cms:template> at the end ie:
<cms:template title='Home' order='1'>
<cms:editable name='hero' label='homepage hero' desc='The first section on the homepage' type='group' order='1' >
<cms:editable name='hero_image' label='hero image' desc='The background image' type='image' grop='hero'/>
<cms:editable name='hero_line_1' label='hero text line 1' type='text' group='hero' />
<cms:editable name='hero_line_2' label='hero text line 2' type='text' group='hero' />
<cms:editable name='hero_cta' label='hero call to action text' type='text' group='hero' />
<cms:editable name='hero_cta_link' label='hero call to action link' desc='eg:contact or about-us etc' type='text' group='hero' />
</cms:editable>
<cms:editable name='text_home' label='page content' type='richtext' order='2' />
<cms:editable name='page' label='Page SEO' desc='Override the default SEO Meta Data' type='group' order='99'>
<cms:editable name='meta_title' label='Meta Title' type='text' group='base_seo' />
<cms:editable name='meta_description' label='Meta Description - 180 words max' type='textarea' group='base_seo' />
</cms:editable>
</cms:template>
2 posts Page 1 of 1
cron