[Typo3] Content of another page
Pierre Rouwens
prouwens at infoglobe.ca
Fri Nov 25 16:55:59 CET 2005
Hi T3ers,
So i've tried this :
$cObjLocal = t3lib_div::makeInstance("tslib_cObj");
$objContent = array('table' => 'tt_content',
'select.' => array('pidInList' => $page['uid'],
'orderBy' => 'sorting',
'where'=>'colPos=0'));
debug($objContent);
debug($renderedContent = $cObjLocal->CONTENT($objContent));
but $renderedContent is always empty...
I'm pretty sure i'm wrong somewhere..but i can't figure out where ?
Any idea please ???
Thanks in advance
Pierre
Pierre Rouwens wrote:
> Almir Orle wrote:
>
>> Hi,
>>
>> Edit (with the pencil) the page that you want your content displayed
>> in, there you have Type: Standard, change that to Advanced, scroll down
>> to Show content from this page instead: and point to right page from
>> your tree...
>>
>> Hope that this is what you'r looking for.
>>
>> Cheers,
>> Almir
>
> Hi Almir,
>
> I'm in a plugin context .. and the preview of the page must be dynamic
> on the homepage depending on which page you wanna preview .. so i think
> i must use $this->cObj but i don't understand how to populate the
> function cObjGet
>
> Pierre
More information about the TYPO3-english
mailing list