Page 1 of 1

Inserting a page into another page

Posted: Sat Sep 17, 2011 3:29 pm
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

Re: Inserting a page into another page

Posted: Sat Sep 17, 2011 6:34 pm
by uniqu3
Maybe Calguy's reply from this topic could help you http://forum.cmsmadesimple.org/viewtopi ... =8&t=56809

Re: Inserting a page into another page

Posted: Sat Sep 17, 2011 8:55 pm
by RonnyK
I would go for CGSimpleSmarty. That has a call to include a page/block.

Ronny

Re: Inserting a page into another page

Posted: Sun Sep 18, 2011 11:07 am
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