[TYPO3-core] RFC: Feature Request #9078: Integrate hook in page module to render preview of records with own CType

Martin Kutschker masi-no at spam-typo3.org
Thu Sep 18 22:13:42 CEST 2008


Oliver Hader schrieb:
> Hi Ingo,
> 
> Ingo Renner schrieb:
>> Oliver Hader wrote:
>>> Solution:
>>> A solution for individual CTypes would be to introduce a hook that is
>>> able to render the preview of the accordant record.
>>
>> could you please make the hook specify an interface as with all new
>> hooks since 4.2?
> 
> I just created a new version of the patch that changes the following:
> * the hook is not only for individual CTypes anymore
> * the hook does a pre-proecessing before the regular processing of
> tx_cms_layout->tt_content_drawItem() - this one can be disabled by the
> hook ($drawItem) - the "if ($drawItem)" is just wrapped around the
> existing switch with no further changes there
> 
> I'm using this new hook to render the previews for individual CTypes as
> well as for previews of the standard CEs that were extended by some IRRE
> functionalities (nested child records with additional content).

Hey folks, your discussion lead to nothing. Do we need a how-to-write
hooks discussion on another list before this patch may go in?

Masi


More information about the TYPO3-team-core mailing list