Multiple pages inside one page or similar?

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
TylerNZ

Multiple pages inside one page or similar?

Post 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. :)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: Multiple pages inside one page or similar?

Post 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.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Multiple pages inside one page or similar?

Post 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?
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: Multiple pages inside one page or similar?

Post 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"}
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Multiple pages inside one page or similar?

Post by Dr.CSS »

so the table_of_contents User Defined Tag. has the content in it?
TylerNZ

Re: Multiple pages inside one page or similar?

Post by TylerNZ »

Is there a way to do multi-sections within a page on the current stable release of CMSMS?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Multiple pages inside one page or similar?

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

Re: Multiple pages inside one page or similar?

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Multiple pages inside one page or similar?

Post 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'}
TylerNZ

Re: Multiple pages inside one page or similar?

Post 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?
TylerNZ

Re: Multiple pages inside one page or similar?

Post 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. :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Multiple pages inside one page or similar?

Post by Dr.CSS »

just copy one of the above and put it in your template...

{content block='block1'}
Post Reply

Return to “Tips and Tricks”