[TYPO3-dev] Site as a template

Jigal van Hemert jigal at xs4all.nl
Wed Apr 6 11:34:34 CEST 2011


Hi,

On 6-4-2011 9:38, Dawid Pacholczyk wrote:
> I mean something like directmail. I create a page, I`m putting there an
> extensions and than my ext is using it as a template.

t3lib_div::getUrl() can retrieve the contents of a file, URL, etc. If 
this is HTML you could theoretically use it in your own extension as 
"template".
Keep in mind that getUrl() actually does a request to the URL, so the 
webserver must serve that page too when your extension is displayed 
(unless your extension is cached).
Directmail only fetches the page when you are preparing a new mailing 
and stores the content in the mailing configuration for later use.

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert.




More information about the TYPO3-dev mailing list