Page 1 of 1

[solved]content block issue

Posted: Thu Sep 24, 2009 5:20 pm
by twen88
I have updated my cmsms to 1.65 and noticed that in the Edit Content area, the secondary content block i created is on top of the main content block, how can I fix this? I want to see the main content first each time when I edit my pages.

Any tip is appreciated.

Re: content block issue

Posted: Thu Sep 24, 2009 5:25 pm
by calguy1000
When editing a content page using multiple content blocks, the blocks NOW appear in the order they are entered in the template.

so if you have:

Code: Select all

<!-- some stuff -->
{content block='foo'}
<!-- some more stuff -->
{content}
You'll see the 'foo' content block first.   This is not a bug, it's actually was a feature request.

To solve this (and a few other things that may have come up, do something like this:>

Code: Select all

</__body>
{content assign='maincontent'}
<!-- some stuff -->
{content block='foo'}
<!-- some more stuff -->
{$maincontent}
This assigns the output of the default content block to the smarty variable maincontent, which you can then re-use later in your template.

Re: content block issue

Posted: Thu Sep 24, 2009 5:29 pm
by twen88
Thank you very much calguy1000, this really helps!!  :)