How to mirror one pages content 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
leerraum
Forum Members
Forum Members
Posts: 180
Joined: Wed Apr 22, 2009 2:54 pm

How to mirror one pages content into another page?

Post 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
Peciura

Re: How to mirror one pages content into another page?

Post 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.
leerraum
Forum Members
Forum Members
Posts: 180
Joined: Wed Apr 22, 2009 2:54 pm

Re: How to mirror one pages content into another page?

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to mirror one pages content into another page?

Post 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
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: How to mirror one pages content into another page?

Post by Jeff »

Depending on what you are trying to do you might want to look at the mod contentalias
Post Reply

Return to “CMSMS Core”