Inserting a page into another page

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
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Inserting a page into another page

Post by spcherub »

I was wondering if there is a way to insert a fully rendered page into another page. I know I can use CGSimpleSmarty to insert content from one page into another, but I want to be able to "include" or "call" a fully rendered page into another page. And yes, the template of called page will not contain full HTML (head, body, etc. tags).

TIA
-S
uniqu3

Re: Inserting a page into another page

Post by uniqu3 »

Maybe Calguy's reply from this topic could help you http://forum.cmsmadesimple.org/viewtopi ... =8&t=56809
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Inserting a page into another page

Post by RonnyK »

I would go for CGSimpleSmarty. That has a call to include a page/block.

Ronny
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Inserting a page into another page

Post by spcherub »

@uniqu3: thanks for the forward. I will look into this. In my case all the pages in question are on the same site, so I was wondering there would be a way of doing the inclusion without the overhead of the "fetch" call.

@Ronny: CGSimpleSmarty currently is able to get the content blocks from other pages but unfortunately does not have a way to get the fully rendered version of a page.

Any other siggestions will be most welcome. I'm also open to writing my own UDT if someone can point me in the right direction. I am sure, for instance, that there are probably methods in the core that are used to render pages as a part of the normal functioning of the site. Any ideas of where to start?

TIA
Sanjay
Post Reply

Return to “CMSMS Core”