[Solved] Sections within content

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
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

[Solved] Sections within content

Post 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
Last edited by baresi on Fri Nov 16, 2007 7:47 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Sections within content

Post 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.
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.
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Sections within content

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Sections within content

Post by calguy1000 »

in a page template, yep.
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.
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Sections within content

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Sections within content

Post 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.
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.
Post Reply

Return to “CMSMS Core”