• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [solved] Default content block not at top in page edit
PostPosted: Sat Jun 09, 2012 11:48 pm 
Offline
New Member

Joined: Mon May 28, 2012 6:04 pm
Posts: 6
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


Top
 Profile  
 
 Post subject: Re: [solved] Default content block not at top in page edit
PostPosted: Sat Jun 09, 2012 11:56 pm 
Offline
New Member

Joined: Mon May 28, 2012 6:04 pm
Posts: 6
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?


Top
 Profile  
 
 Post subject: Re: [solved] Default content block not at top in page edit
PostPosted: Sun Jun 10, 2012 12:05 am 
Offline
Dev Team Member
Dev Team Member
User avatar

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

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: [solved] Default content block not at top in page edit
PostPosted: Sun Jun 10, 2012 12:09 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6609
Location: Fernie British Columbia, Canada
BTW, thank you for providing sufficient information for us to be able to help with.

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: [solved] Default content block not at top in page edit
PostPosted: Sat Jun 16, 2012 9:08 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Sat Aug 25, 2007 9:55 am
Posts: 1186
Location: Berlin
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'}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting