[TYPO3-english] Content Type "Script": Is it gone for a reason?

Tapio Markula tapio.markula at xetpoint.fi
Tue Nov 18 11:40:44 CET 2008


Joerg Wagner kirjoitti:
> Hello!
> 
> Preamble:
> In ancient history there was a Typo3 content type "script" which allowed 
> the direct inclusion of TS output as a content element.
> It looks like with the introduction of sysext CSS styled content (around 
> year 2003) the this content type was disabled (possibly as a temporary 
> messure) and then it never reappeared.
> During my research I found that it actually can be reactivated by 
> modifying TCEFORM.tt_content.CType.removeItems. But I am reluctant to do 
> so as I do not understand why is was deactivated in the first place.
> 
> Question:
> Is there a reason why content type "Script" was never reactivated?
> Is this way of including TS output into the content deprecated?
> If so, what is the recommended way today?

don't know but

includeLibs.extramarkers =...

something like
tt_content.text.20 {
    parseFunc {
    userFunc=user_myreplace->myfunction
    }
    }
}


user_replacefunction($content,$conf) {
// do something
$replacedContent=...;
str_replace('[object]',$replacedContent,$content)
}

will replace something in the content - in principle anything, which has 
been converted as a string.

some CMS use [object] inside RTE field - this can be programmed with 
userFunc for Typo3 if needed.
with for example
userFunc=user_replaceclass>user_replacefunction

In some cases it  would be easier to put inside one RTE
[leftObject][rightObject]
[bottomObject]
than create three separate areas for them.


More information about the TYPO3-english mailing list