Adding pages gives "Content is empty"

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Alain
Forum Members
Forum Members
Posts: 17
Joined: Wed Oct 13, 2010 11:35 am

Adding pages gives "Content is empty"

Post by Alain »

Hey there,

Posted it here as its got to do with one of the core functions, I guess.

It seems that whenever I want to add a page, it displays an error, as if I didn't insert ANY content. I've got three editors in there, due to content blocks, and even if I place content in all three, the error continues to display still.

http://solidscan.nl/

As you can see, there are four content blocks. Also, if you navigate to sub-sub items in the menu, all those pages appear blank.

This is the content block code:

Code: Select all

<div id="content">

<div class="contentBox">

<h1>{title}</h1>
{content block='content'}
</div>
			{if $page_alias == "home"}
                                          <div class="contentblock">{content block='block1'}</div>
			<div class="contentblock" id="last">{content block='block2'}</div>
			<div class="contentblock">{content block='block1'}</div>
			<div class="contentblock" id="last">{content block='block2'}</div>
                                          {/if}
                                          {if $page_alias == "contact"}
                                                  {replace_lang_form}
                                                  {FormBuilder form='contact'}
                                          {/if}
		</div>
	</div><!-- //main -->	
	<div class="clear"></div>
Any help would be greatly appreciated.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Adding pages gives "Content is empty"

Post by RonnyK »

You need one {content} all others can be called with block=, but the {content} SHOULD exist.

Ronny
User avatar
Alain
Forum Members
Forum Members
Posts: 17
Joined: Wed Oct 13, 2010 11:35 am

Re: Adding pages gives "Content is empty" [Solved]

Post by Alain »

Ahh, I didn't notice that {content} was set to the unedited {block='content'} still, back when I was experimenting. That seemed to fix the issue. Thanks a fortune!
Post Reply

Return to “CMSMS Core”