Page 1 of 1

Adding pages gives "Content is empty"

Posted: Thu Dec 16, 2010 12:07 pm
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.

Re: Adding pages gives "Content is empty"

Posted: Thu Dec 16, 2010 2:48 pm
by RonnyK
You need one {content} all others can be called with block=, but the {content} SHOULD exist.

Ronny

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

Posted: Thu Dec 16, 2010 3:27 pm
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!