Page 1 of 1

[fixed?] content block with space

Posted: Mon Jul 23, 2012 7:18 am
by SanderDuif
Code:

Code: Select all

{content block="test block" oneline="true"}
Using this code in a template makes the content editable on the page in the backend but does not show the actual content in the frontend.

Using

Code: Select all

{content block="testblock" oneline="true"}
works as expected.

Is it possible that the space in the name is messing up? It used to work fine in the past.

Re: content block with space

Posted: Mon Jul 23, 2012 7:35 am
by uniqu3
use "label" for naming of blocks, using space in "block" parameter was never recommended.

Re: content block with space

Posted: Mon Jul 23, 2012 9:59 am
by SanderDuif
You're right, thanks! Label should be used for a name/description of the content block. Even if it used to work before with a space, the recommended use is to avoid using one.

Mayby this should be added as reminder in the description of the block parameter?

Re: content block with space

Posted: Mon Jul 23, 2012 4:56 pm
by calguy1000
Fixed in svn anyways.