Feb. 20., 2008

addPItoST43?

TYPO3 sometimes drives me nuts. It happens that I come across cryptic function or property names, using them over and over again without having a clue, what its name stands for. t3lib_extMgm::addPItoST43() is one of them, although it is part of almost a billion TYPO3 extensions...

Not only that we have the optionSplit beast, but we are hunted by the magic number 43. And we add PI to ST number 43?!

Today, I had enough and tried to find out, what ST43 stands for. Finaly, the source code documentation led the cat out of the bag:

  • Add
  • PI = Plugin
  • to ST = to Static Template
  • 43 = 43 is the uid of the static template 'content.default'

So the function name means: Add PlugIn to Static Template #43.

Now don't worry if you use css_styled_content instead of static templates: The docs promise it will work anyway.

--> Back to the list of articles

Comments

  1. Michiel Roos wrote on May 21, 2009 at 11:53

    This function couples the class to an entry in the 'list' also known as the cObject 'Insert Plugin'. The second parameter enables or disables cacheing of the plugin.

    You do not need to use this archaic function. You can also use the following code in your TS setup.

    includeLibs.tx_extension_pi = EXT:extension/pi/class.tx_extension_pi.php
    plugin.tx_extension_pi = USER
    plugin.tx_extension_pi {
    userFunc = tx_extension_pi->main
    }
    tt_content.list.20.extension_pi =< plugin.tx_extension_pi


Leave a comment:

(will not be published)

CAPTCHA image for SPAM prevention

If you can't read the captcha word, please click to load a new image.
(You need Javascript turned on. Otherwise press the submit button and wait until the page has reloaded.)