[solved]content block issue

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
twen88
Forum Members
Forum Members
Posts: 118
Joined: Thu Aug 16, 2007 8:07 pm

[solved]content block issue

Post 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.
Last edited by twen88 on Thu Sep 24, 2009 5:29 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: content block issue

Post 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.
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.
twen88
Forum Members
Forum Members
Posts: 118
Joined: Thu Aug 16, 2007 8:07 pm

Re: content block issue

Post by twen88 »

Thank you very much calguy1000, this really helps!!  :)
Post Reply

Return to “CMSMS Core”