Page 1 of 1
How to mirror one pages content into another page?
Posted: Mon Sep 14, 2009 10:07 am
by leerraum
Hi,
I want to mirror the content of one page into another page, but I didn't found a tag for this. Is there one? I want to make a page that works like a mash up... it accesses a defined content block (f.e.: block="introduction") of a page and displays it at another page... is this possible?
Thanks
leerraum
Re: How to mirror one pages content into another page?
Posted: Mon Sep 14, 2009 11:52 am
by Peciura
In my opinion you have to separate blocks you want to include to others sites or pages. To do this you can create page (or php file(s) ) without template (or with very minimal template) with some content blocks accessible over additional url parameter (
&piece_of_cake=a_one_third).
First of all you will need smarty function -
{fetch} http://www.smarty.net/manual/en/language.function.fetch.php
If you simply add "
&showtemplate=false" to your url, your former CMSMS page will omit template.
Carefully inspect files, they might contain all info you need:
- /index.php
- /modules/Printing/output.php
- /modules/Printing/action.default.php
Let us know how it is going.
Re: How to mirror one pages content into another page?
Posted: Mon Sep 14, 2009 2:20 pm
by leerraum
http://forum.cmsmadesimple.org/index.php?topic=25380.0
found a solution here. I'm making the site, und using the tag found there for retrieving the neccessary content parts.
Re: How to mirror one pages content into another page?
Posted: Mon Sep 14, 2009 2:23 pm
by RonnyK
If you want the full page, you can either use the internal-link content-type.
Also the module CGSimpleSmarty has logic inside, to take the content of another pages block, to show it there...
Ronny
Re: How to mirror one pages content into another page?
Posted: Wed Sep 16, 2009 2:40 am
by Jeff
Depending on what you are trying to do you might want to look at the mod contentalias