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
2nd content block does not appear in page edit preview, does on live site
2nd content block does not appear in page edit preview, does on live site
Last edited by epo on Tue Jun 10, 2008 8:21 am, edited 1 time in total.
Re: 2nd content block does not appear in page edit preview, does on live site
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
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.
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.
-
- 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
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.
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.
Re: 2nd content block does not appear in page edit preview, does on live site
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
imho preview should have been taken out a long time ago, but that's just mho...