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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
epo
Forum Members
Forum Members
Posts: 12
Joined: Mon Jun 09, 2008 9:00 am

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

Post 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
Last edited by epo on Tue Jun 10, 2008 8:21 am, edited 1 time in total.
epo
Forum Members
Forum Members
Posts: 12
Joined: Mon Jun 09, 2008 9:00 am

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

Post 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?
Pierre M.

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

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post by calguy1000 »

Yeah, Preview was not fixed for 1.3
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post by Dr.CSS »

imho preview should have been taken out a long time ago, but that's just mho...
Post Reply

Return to “CMSMS Core”