[TYPO3] Get content from different T3 instance

Christopher Torgalson bedlamhotel at gmail.com
Tue Jun 3 18:17:06 CEST 2008


Hi,

>>> Hello,
>>> I have one system running several TYPO3 instances. This is a
>>> requirement. Now two of these instances have a particular node
>>> in the pagetree which is equal. For instance if you have to sites
>>> with a FAQ section that has the same content. Of course inserting
>>> the content twice is not exceptable so I have to come up with
>>> something to include the FAQs in one instance from the other.

Low-tech solution (only works if the number of pages does not change 
often).

1. Publish static versions of pages from TYPO3 when they change (from 
admin panel),
2. Write a PHP or shell script that copies pages from one instance to 
the next (could use CURL in PHP or shell),
3. Set cron to run said script daily/hourly/etc,
4. In the two additional TYPO3 instances, create an "External URL" page 
for each static page.

Step 4 is why this won't work if the number of pages changes. Unless 
you're willing to have the various resources in the pages link to the 
master site though, you're going to have problems with images, 
stylesheets, external javascripts etc.

Alternatively (somebody asked about this in the dev list recently), 
write an extension that automatically exports the relevant pages as .t3d 
files (master site), and imports them from .t3d (client sites).

Having said that, I strongly suspect that it'd be easier to change your 
requirement of separate TYPO3 instances (since all this achieves is 
separate databases--multiple domains sharing content work just fine 
inside one TYPO3 instance), than it will be to write a comprehensive 
solution for your content-duplication requirement.

-- 
Christopher Torgalson / bedlamhotel at gmail.com


More information about the TYPO3-english mailing list