[TYPO3-english] Render Content from php
Richard Davies
richard at ocular.co.nz
Wed Nov 21 21:47:36 CET 2012
Hi Pablo,
Get the text you want from the database, then (in pibase at least) you use
the method tslib_pibase::pi_RTEcssText($text). You may need to include
tslib_pibase to use it if its not strictly a plugin, I can't recall but you
may or may not need to initialise a 'frontend' to use it.
Richard
On 22 November 2012 04:52, Pablo Feldman <pablofeldman90 at gmail.com> wrote:
> Hi list,
>
> I want to render the tt_content of a page (like CONTENT do), but inside a
> php file inside a USER function
>
> for example:
>
> I have this inside a ts file
> 5 = CONTENT
> 5 {
> table = tt_content
> select {
> selectFields = bodytext,CType,pi_flexform,list_type
> pidInList = 2
> andWhere.cObject = COA
> andWhere.cObject {
> 10 = TEXT
> 10.dataWrap = sys_language_uid = {GP:L}
> }
> }
> }
>
> How could I do this inside the php?
>
> Thanks in advance
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list