multiple content boxes

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.
Locked
fiddler

multiple content boxes

Post by fiddler »

Maybe I'm just being dull here, but please bear with me.  I have a template that has two separate places to put content.  When I bring up the page to edit, there is only one "content" field showing in the WYSIWYG and when I insert text it is duplicated in both boxes.  If I'm understanding things correctly from what I've read, the latest version of cms (not the beta) has the capabilites of utilizing multiple content boxes.  Alex said, on one reply, that " There are lots of threads in the forum explaining the multiple content blocks."  So I've searched throughout the forum for such threads for info but all I've come up with are people asking questions, I haven't found any instructions on how to make multiple content boxes work on a template.  Perhaps I'm getting the interpretation of 'multiple content boxes' wrong.  Incidentially, I tried putting {content=header} in one place, as someone suggested, but all I got was a smarty error.  I put it on the HTML section of my template, where I normally put {content} on another template.

Can anyone tell me what I'm doing wrong, and what I need to do to get it right?
Thanks for your time and patience with me.
fiddler

Re: multiple content boxes

Post by fiddler »

Ahhhh - that works!  Thanks very much for the help.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: multiple content boxes

Post by Greg »

I created a template with the following content blocks:

In the Head section  {content block="header" wysiwyg="false"}
In a div with id="lcontent" {content block="left"}
In a div with id="rcontent" {content block="right"}

When I choose this template to add a page I get the following:

a Content block with FCKEditor wysiwyg
a Header block with no wysiwyg
a Left block with FCKEditor wysiwyg
a Right block with FCKEditor wysiwyg

The error is the 'Content block with FCKEditor wysiwyg' showing up in when I edit a page as I do not have a {content} tag in my template. This block does not show up in the final rendered page but it shouldn't show up when editing a page. Also it requires some content in order to 'submit' the page.

Other than this problem - Multiple content boxes work great.

CMSMS version 0.11.2

Any ideas of how to fix this?
Greg
westis

Re: multiple content boxes

Post by westis »

I think you must always have the {content} tag. Replace {content block="left"} with {content} and that should work.
dirtywhitellama

Re: multiple content boxes

Post by dirtywhitellama »

Is it possible to specify how large a content box should show up in the edit/add content pages?


Also the extra content boxes are only showing up in edit and not add content.  why would that be?
Last edited by dirtywhitellama on Sun Mar 05, 2006 8:02 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”