[TYPO3-templavoila] Render content of page from PHP

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Thu May 10 10:22:42 CEST 2007


Mark Ravitz wrote:
> I'm trying to get an Ajax plug-in to work with TV. The plug-in has a PHP 
> function which needs to
> return the rendered contents of a page without the
> body/header tags.
> 
> When you are not using TV the code looks like:
> 
> $conf1 = array('orderBy' => 'sorting', 'pidInList' => '123');
> $conf2 = array('table' => 'tt_content', 'select.' => $conf1);
> $content = $this->cObj->CONTENT($conf2);
> 
> 
> Does any know what the PHP function call should
> look like with  TV?

I guess something like:

$conf = array('userFunc' => 'tx_templavoila_pi1->main_page');
$content = $this->cObj->USER($conf);

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-project-templavoila mailing list