Page 1 of 1

2nd content block does not appear in page edit preview, does on live site

Posted: Tue Jun 10, 2008 7:35 am
by epo
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

Re: 2nd content block does not appear in page edit preview, does on live site

Posted: Tue Jun 10, 2008 8:40 am
by epo
OK, a hopefully definitive test. When the preview pane is initially opened my sidebar does not appear, however if I select its tab in the preview pane then the sidebar magically appears, an initialisation problem?

Re: 2nd content block does not appear in page edit preview, does on live site

Posted: Wed Jun 11, 2008 5:15 pm
by Pierre M.
Hello,

can be a known bug : in the 1.2.x series, only the main content block is previewed. May be the same in 1.3. Google for preview, block, etc.

Pierre M.

Re: 2nd content block does not appear in page edit preview, does on live site

Posted: Wed Jun 11, 2008 5:24 pm
by calguy1000
Yeah, Preview was not fixed for 1.3

Re: 2nd content block does not appear in page edit preview, does on live site

Posted: Wed Jun 11, 2008 5:25 pm
by Ted
This will probably not be fixed in the 1.x series because it requires an entire overhaul of the preview system.  I have fixed the preview limitations in 2.0, whenever it decides to release.  However, those fixes would be way too much work to backport, as there were a ton of infrastructure changes in 2.0 to make this easier to do.

Re: 2nd content block does not appear in page edit preview, does on live site

Posted: Wed Jun 11, 2008 7:34 pm
by Dr.CSS
imho preview should have been taken out a long time ago, but that's just mho...