[Typo3] Creating an extension

René Schade schade at hypergenic.com
Tue May 17 16:58:20 CEST 2005


> In your class.tx_myplugin.pi1.php source file, you should 
> have a couple lines that look like:
> 
> ...
> 
> class tx_myplugin_pi1 extends tslib_pibase {
>     var $prefixId = 'tx_myplugin_pi1';        // Same as class name
> ...
> 
[cut]
> If you want a separate instance, unrelated to the rest of 
> your site, which I personally prefer:
> 
> temp.myplugin < plugin.tx_myplugin_pi1
> temp.myplugin {
>   color = blue
>   option = left
>   wrap = <b> | </b>
> }
> 
> whatever.mapping < temp.myplugin
> 

Thanks, just what I needed. But it did still not do the job. 

My plugin is not in the plugin list of the object list, could that be the reason?

Studying other plugins, it seems like creating a file 

ext_localconf.php

With the line:

t3lib_extMgm::addPItoST43($_EXTKEY,"pi1/class.tx_myplugin_pi1.php","_pi1","includeLib",1);

Does the job, it works. But the documentation to addPItoST43 worries me, it seems like
it's a kind of hack?

Thanks
René



More information about the TYPO3-english mailing list