Feb. 20., 2008

addPItoST43?

By Steffen Müller. Licensed under the Creative Commons License

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

License

Licensed under creative commonsThis article is licensed under the Creative Commons License CC BY-SA 3.0. You are free to share (copy, distribute and transmit) and to remix (to adapt) the work under the following conditions:

  • You must attribute the work by mentioning the name of the author (Steffen Müller) and setting a link back to the original article using its URL.
  • If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

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:

This page uses static caches. Make sure you reload the page in your browser after posting a comment.

(will not be published)

CAPTCHA image for SPAM prevention Click here for audio version of the word to enter.

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.)