2nd content block does not appear in page edit preview, does on live site
Posted: Tue Jun 10, 2008 7:35 am
This is 1.3, I'm new to CMSMS but this seems wrong to me.
I have a template with a second content block {content block='sidebar'}, I had been experimenting with placing initial text when the content block was empty only to realise it didn't do what I needed.
(EDIT after some more investigation)
I have the following text in my template:
{content block='sidebar' assign='sidebar'}
{if empty($sidebar)}
foo bar
{else}
{$sidebar}
{/if}
I also have some content defined in the page. Now when I preview the page in the page editor, I see text 'foo bar', i.e. it behaves as though $sidebar was empty. When I view the page on the web I see my defined content.
Not being able to preview ones work kind of diminishes the appeal of a CMS to end users so I'd like to fix this, have tried letting time pass, making content edits but the preview is still wrong. Any ideas?, is this a bug?
Ed
I have a template with a second content block {content block='sidebar'}, I had been experimenting with placing initial text when the content block was empty only to realise it didn't do what I needed.
(EDIT after some more investigation)
I have the following text in my template:
{content block='sidebar' assign='sidebar'}
{if empty($sidebar)}
foo bar
{else}
{$sidebar}
{/if}
I also have some content defined in the page. Now when I preview the page in the page editor, I see text 'foo bar', i.e. it behaves as though $sidebar was empty. When I view the page on the web I see my defined content.
Not being able to preview ones work kind of diminishes the appeal of a CMS to end users so I'd like to fix this, have tried letting time pass, making content edits but the preview is still wrong. Any ideas?, is this a bug?
Ed