excute / render single TypoScript Snippet / Object
| Author | Tags | Category | Date |
|---|---|---|---|
Jonas Dübi |
FE, typoscript, cObject | php | July 02, 2008 |
With this script you can render any typoscript with your record data. You can do in example images or typolinks with this very very easy.
// clone the cObj so the data you writh into it does not influence the cObj which is used by the whole pi, otherwise you'll get strange phenomens $localCObj = clone $this->cObj; // add your record data $localCObj->data = $yourrecord; // execute your typoscript $content = $localCObj->cObjGetSingle($this->conf['coolobject'], $this->conf['coolobject.']); /* You could render the record title as linked text very easy: coolobject = TEXT coolobject { field = title typolink = 1 typolink.parameter.field = url } */
Copy to Clipboard