Multiple pages inside one page or similar?
Multiple pages inside one page or similar?
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.
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
- Location: Deatsville, AL
Re: Multiple pages inside one page or similar?
From the help for the "content" plugin/tag in the SVN version of CMSMS: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.
Should get you startedWhat 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.
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.
Re: Multiple pages inside one page or similar?
how would this be used? like a global content block?* (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.
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
- Location: Deatsville, AL
Re: Multiple pages inside one page or similar?
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.mark wrote:how would this be used? like a global content block?* (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.
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.
Re: Multiple pages inside one page or similar?
so the table_of_contents User Defined Tag. has the content in it?
Re: Multiple pages inside one page or similar?
Is there a way to do multi-sections within a page on the current stable release of CMSMS?
-
- 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?
You mean multiple content blocks, like
{content block=top}
{content block=leftcolumn}
{content}
{content block=rightcolumn}
{content block=bottom}
then, the answer is yes.
{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.
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.
Re: Multiple pages inside one page or similar?
Are you refering to the Global Content Blocks: {global_content name='whatever'}
I can't find {content block=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?
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'}
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?
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?
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.
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?
just copy one of the above and put it in your template...
{content block='block1'}
{content block='block1'}