[TYPO3-dev] How to access $data['sys_template'][..][..] ?

Andreas Balzer typo3 at andreas-balzer.de
Mon Apr 2 23:05:02 CEST 2007


Hi!
I'm just coding my first extension called abcsstidy 
(http://typo3.org/extensions/repository/view/abcsstidy/0.0.1/). It's 
based on tstidy and has the aim to integrate csstidy into T3, so that 
css templates can be optimized with it.

For this I have added a field (tx_abcsstidy_parsewithcsstidy) to the 
table sys_templates which I would like to read in my file 
class.tx_abcsstidy.php which is a file opened in FE.

While doing this I experienced two major problems:
1) $params['pObj'] does not contain $data with its array information 
['sys_template'][------id_of_template-------]['tx_abcsstidy_parsewithcsstidy']
This results in the problem, that I wasn't able to neither find the 
fieldname in pObj, nor the value.
2) How to get the id of the template where my field is situated and 
changed to a value I want to check for?

As I do not understand T3's internal systems yet, I would appreciate if 
someone can help me.

The problem is situated twice in class.tx_abcsstidy.php. Once in line 45 
and the second time in line 59.

Thanks for any help.
Andreas
2)





More information about the TYPO3-dev mailing list