multiple pages on same page

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
toma
New Member
New Member
Posts: 3
Joined: Fri Dec 16, 2011 8:38 am

multiple pages on same page

Post by toma »

Hi!

I need to do something like this:

"MasterBlock"
http://www.freeimagehosting.net/183c3
------------------------------------
Content block1 if everything will go greatly there is some code which calculates and draws bar charts and one pie chart here.

Content block2 writer will write some text here

Content block3 writet will write some number from -2 to +2 here

Content block4 writet will write some number from -2 to +2 here

Content block5 writer will write some text here

Content block6 writer will write some text here
------------------------------------
Idea is that writer fills these "MasterBlocks" as many as needed and they will come first wrote - first shown at page.

As far as I know, this cannot be done by blog system. Even it is close to one. Or can blog be customized this much? And because amount of these blocks is unknown I just cannot add enough content blocks to one page.

Please ask more information, I just cannot write this out very clearly...

Cmsms version: 1.10 "Martinique"
PHP-version 5.3.6
MySQL-version 5.1.56
Apache-version 2.2.21
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: multiple pages on same page

Post by spcherub »

You are right, your explanation is not very clear.

Are you asking if there is a way to add multiple content blocks per page? If so, yes there is and you can look at the Help for the {content} tag to see how it is done.

Or are you asking if there is a way to add an indefinite number of block per page - like the author can simply add one more when they need it? If so, that is not supported by the normal template mechanism. However, you can get around it by using sub-pages (child pages), each of which will represent one "block" on the main (parent) page. You can then use the {menu} tag and CGSimpleSmarty module (getcontent) function to get the content from each of the child pages and render it on the parent page in sequence.

Hope that helps.
-S
Post Reply

Return to “The Lounge”