Page 1 of 1

[solved] Template causes "No content given" error when adding new content

Posted: Wed Oct 07, 2009 11:16 pm
by Stom
I've just installed a new copy of CMSMS, ver 1.6.6. I have a template with two content blocks, see code below:

Code: Select all

<div id="content">
	<div id="right-column">
		<div id="search">
			{search}
		</div>
		{content block='Content'} (I've also tried block='content', same result.)
	</div>
		
	<div id="left-column">
		{content block='leftcolumn'}
	</div>
</div>
I've set this as the default template. If I try to add a new page with this selected as the template I get the error "No content given!". If I choose another template it works. Then I can change to my desired template and it works. Why whould this happen?

Thanks in advance.

Re: Template causes "No content given" error when adding new content

Posted: Thu Oct 08, 2009 4:37 am
by RonnyK
Make the first one just {content}.... Only additional blocks are requiring a name. And {content} should always be there as some modules rely on that.

Ronny

[solved] Re: Template causes "No content given" error when adding new content

Posted: Thu Oct 08, 2009 7:03 pm
by Stom
Brilliant, that worked a treat. Thank you.

It also solved some issues I was having with the Products module.