Page 1 of 1

[solved] Default content block not at top in page edit

Posted: Sat Jun 09, 2012 11:48 pm
by ottoreck
Hi. I'm running CMS Made Simple 1.10.3. I'm using PHP 5.3.2, and MySQL 5.1.44. This is all working with Apache 2.0.63 running on Linux.

I've added a few custom content blocks to my template, but when editing a page, those fields appear before the main default "Content*" block.

Is there anyway to maintain the "Content*" editor block at the top and have the custom content sections below?

At the top of my template:
{content block='Notes - Headline' assign='NotesHeadline'}
{content block='Notes - Left List' assign='NotesListLeft'}
{content block='Notes - Right List' assign='NotesListRight'}

but in the editor, i see
"Notes - Headline" section/editor
then
"Notes - Left List"
then
Notes - Right List"
then
"Content*"

I want the default "Content*" section to appear first before the other custom content blocks in the page editor?

Thanks

Re: [solved] Default content block not at top in page edit

Posted: Sat Jun 09, 2012 11:56 pm
by ottoreck
i guess never mind. Not sure if this is the right way to do it, but i added the default content block to the top and assigned it to a variable. That basically reordered the blocks in the editor.

so i did...
{content assign='thecontent'}
{content block='Notes - Headline' assign='NotesHeadline'}
{content block='Notes - Left List' assign='NotesListLeft'}
{content block='Notes - Right List' assign='NotesListRight'}

and that seemed to order them the way i wanted.

Is that the right way to do it?

Re: [solved] Default content block not at top in page edit

Posted: Sun Jun 10, 2012 12:05 am
by calguy1000
Content Blocks are displayed in the order that they are defined. FYI:

a: {content} is essentially just short for {content block='content_en'}.

b: yes, the assign method is the best way of controlling the display and output in a customizable order.

Re: [solved] Default content block not at top in page edit

Posted: Sun Jun 10, 2012 12:09 am
by calguy1000
BTW, thank you for providing sufficient information for us to be able to help with.

Re: [solved] Default content block not at top in page edit

Posted: Sat Jun 16, 2012 9:08 am
by nicmare
ottoreck wrote: {content assign='thecontent'}
{content block='Notes - Headline' assign='NotesHeadline'}
{content block='Notes - Left List' assign='NotesListLeft'}
{content block='Notes - Right List' assign='NotesListRight'}

Is that the right way to do it?
better:
{content assign='thecontent'}
{content block="n_headline" label='Notes - Headline' assign='NotesHeadline'}
{content block="n_leftlist" label='Notes - Left List' assign='NotesListLeft'}
{content block="n_rightlist" label='Notes - Right List' assign='NotesListRight'}