Page 1 of 1

[Solved] Sections within content

Posted: Fri Jul 27, 2007 4:23 pm
by baresi
Sort of a newbie question, hope someone can point me to the right direction

Lets say I have pages where the content is divided into sections. For example content of any individual page is as follows

—-
Introduction
(Some text)

Bio
(Some text)

Added notes
(Some text)

——

I hope I make sense here, I guess I am asking about making blocks within content and when a page needs to be edited one can work with individual sections or blocks within content without touching other sections of the content. I am using 1.1 on XAMPP (XP) for now but it will be going on a windows IIS6 server

Re: Sections within content

Posted: Fri Jul 27, 2007 4:40 pm
by calguy1000
CMS Supports multiple content blocks,  You just need to add them to your page template.  Something like this:

Introduction
{content}

Bio
{content block='Bio'}

Added-Notes
{content block='Notes'}

Note:  One of the content blocks must be just {content} for everything to work properly, but there's no limit on the number you can have.

Re: Sections within content

Posted: Fri Jul 27, 2007 5:07 pm
by baresi
Thanx for the quick reply :)

They don't have to be defined anywhere under Tags or Blocks but only inserted into a Template?

Re: Sections within content

Posted: Fri Jul 27, 2007 5:32 pm
by calguy1000
in a page template, yep.

Re: Sections within content

Posted: Fri Jul 27, 2007 7:35 pm
by baresi
I searched for 'parsing html' and others but I guess this is another very newbie question.
How is html within content handled? I know I can use TinyMCE's bold button, what happens if I am copying some preexisting html code thats like hello? whats the best way to handle something like that?

Sorry for using same thread I created for other questions

Re: Sections within content

Posted: Sat Jul 28, 2007 2:25 am
by calguy1000
whatever you copy and paste/or type into a content block appears in the output html verbatim... it's then up to your stylesheets and then the browser to arrange the code the way you want.

so... if you copy hello from notepad or some other evil application into a CMS Made Simple text area, then your stylesheet will help to decide how that gets displayed.  if there are no rules (stylesheets are just rule definitions) as to how that gets displayed, then your browser will use it's default settings.