[invalid] contten block - default parameter

Post Reply
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

[invalid] contten block - default parameter

Post by Rolf »

SVN rev. 8176

Added to template:

Code: Select all

{capture assign=foo}BLAH{/capture}
{content block="name" default=$foo}
Opening a new page gives block with content
$_smarty_tpl->tpl_vars['foo']->value
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: [invalid] contten block - default parameter

Post by Rolf »

{content block="name" default=$foo} is not valid!
{content block="name" default="blah"} is the correct methode.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Closed Issues”