Page 1 of 1

Multiple pages inside one page or similar?

Posted: Fri Jul 14, 2006 4:44 pm
by TylerNZ
Hey, I'm wanting to split my page-up into multiple sections that can be edited individually. Can someone give me some advice - or point me to a post where I can do this?? Thanks for your guidance. :)

Re: Multiple pages inside one page or similar?

Posted: Fri Jul 14, 2006 6:59 pm
by Elijah Lofgren
TylerNZ wrote: Hey, I'm wanting to split my page-up into multiple sections that can be edited individually. Can someone give me some advice - or point me to a post where I can do this?? Thanks for your guidance. :)
From the help for the "content" plugin/tag in the SVN version of CMSMS:
What parameters does it take?

    * (optional)block - Allows you to have more than one content block per page. When multiple content tags are put on a template, that number of edit boxes will be displayed when the page is edited.

      Example:

      {content block="Second Content Block"}

      Now, when you edit a page there will a textarea called "Second Content Block".
    * (optional)wysiwyg (true/false) - If set to false, then a wysiwyg will never be used while editing this block. If true, then it acts as normal. Only works when block parameter is used.
    * (optional)oneline (true/false) - If set to true, then only one edit line will be shown while editing this block. If false, then it acts as normal. Only works when block parameter is used.
    * (optional)assign - Assigns the content to a smarty parameter, which you can then use in other areas of the page, or use to test whether content exists in it or not.
Should get you started ;)

Post back if you have problems and I'll try to explain further.

Re: Multiple pages inside one page or similar?

Posted: Fri Jul 14, 2006 7:15 pm
by Dr.CSS
* (optional)assign - Assigns the content to a smarty parameter, which you can then use in other areas of the page, or use to test whether content exists in it or not.
how would this be used? like a global content block?

Re: Multiple pages inside one page or similar?

Posted: Fri Jul 14, 2006 8:37 pm
by Elijah Lofgren
mark wrote:
* (optional)assign - Assigns the content to a smarty parameter, which you can then use in other areas of the page, or use to test whether content exists in it or not.
how would this be used? like a global content block?
I use it to assign the page content to a smarty variable and them pass it as a parameter to my table_of_contents User Defined Tag.

Example of how I use it:

Code: Select all

         {content assign=pagecontent}
         {table_of_contents thepagecontent="$pagecontent"}

Re: Multiple pages inside one page or similar?

Posted: Fri Jul 14, 2006 9:17 pm
by Dr.CSS
so the table_of_contents User Defined Tag. has the content in it?

Re: Multiple pages inside one page or similar?

Posted: Fri Jul 14, 2006 9:23 pm
by TylerNZ
Is there a way to do multi-sections within a page on the current stable release of CMSMS?

Re: Multiple pages inside one page or similar?

Posted: Sat Jul 15, 2006 12:28 am
by calguy1000
You mean multiple content blocks, like

{content block=top}
{content block=leftcolumn}
{content}
{content block=rightcolumn}
{content block=bottom}

then, the answer is yes.

Re: Multiple pages inside one page or similar?

Posted: Sat Jul 15, 2006 9:21 pm
by TylerNZ
Are you refering to the Global Content Blocks: {global_content name='whatever'}

I can't find {content block=whatever}
calguy1000 wrote: You mean multiple content blocks, like

{content block=top}
{content block=leftcolumn}
{content}
{content block=rightcolumn}
{content block=bottom}

then, the answer is yes.

Re: Multiple pages inside one page or similar?

Posted: Sat Jul 15, 2006 9:39 pm
by Dr.CSS
you know how the default templates have the content tag {content}
he's saying if you want to put more than one content 'box' in your template to make more content tags...
one of mine...  from this template/page...
http://www.multiintech.com/index.php?pa ... ened_cells

 
   
     
{content block='newstitle' oneline='true'}
{content block='news'}
     

     
{content block='block1title' oneline='true'}
{content block='block1'}
     
   

   
{content block='contenttitle' oneline='true'}  this is so i can have a diff. title other than the page title
{content} default content tag...

{content block='block2title' oneline='true'}  this makes a one line content edit box, i put the title to the content block2 in here
{content block='block2'}

{content block='block3title' oneline='true'}
{content block='block3'}

      {content block='block4title' oneline='true'}
{content block='block4'}

      {content block='block5title' oneline='true'}
{content block='block5'}

      {content block='block6title' oneline='true'}
{content block='block6'}

Re: Multiple pages inside one page or similar?

Posted: Sat Jul 15, 2006 10:00 pm
by TylerNZ
I'm having trouble actually CREATING a content block besides the Page Content. Man I'm a newbie ... can you help me create a content block to place in a page?

Re: Multiple pages inside one page or similar?

Posted: Sat Jul 15, 2006 10:33 pm
by TylerNZ
N/m, I was told by someone else.

If you add: {content block='newContent'} to the template it will create a new textbox to edit on the page edit page. :)

Re: Multiple pages inside one page or similar?

Posted: Sat Jul 15, 2006 10:35 pm
by Dr.CSS
just copy one of the above and put it in your template...

{content block='block1'}