Hi,
I am having trouble with an if statement which I can't get to resolve to True, ever! Please help me
On Page1.php I have (simplified version)
Then in Template.inc I have
The span element will ne ver show on the page regardless of the radio button I choose in the editor. What am I doing wrong I hope you can help.
I am having trouble with an if statement which I can't get to resolve to True, ever! Please help me

On Page1.php I have (simplified version)
- Code: Select all
<?php
require_once( 'couch/cms.php' );
?>
<cms:capture into='showBackgroundImage' scope='global'>
<cms:editable name='BgImage' label='Background Image' desc='Do you want to show the background image on this page?' opt_values='True | False' type='radio'></cms:editable>
</cms:capture>
<cms:embed 'Template.inc' />
<?php
COUCH::invoke();
?>
Then in Template.inc I have
- Code: Select all
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head />
<body>
<cms:if showBackgroundImage = 'True' >
<span><cms:show showBackgroundImage /></span>
</cms:if>
</body>
</html>
The span element will ne ver show on the page regardless of the radio button I choose in the editor. What am I doing wrong I hope you can help.