Die Ausgabe einer Extension wird normalerweise durch TYPO3 zusammen mit den übrigen Seiteninhalten gecacht. Falls das nicht erwünscht ist, so kann man im Extension-Verzeichnis die Datei ext_localconf.php anlegen / editieren:
Die Methode addPItoST43 wird dabei wie folgt parametrisiert (aus t3lib/class.t3lib_extmgm.php):PHP-Code:<?php
if (!defined ("TYPO3_MODE")) die ("Access denied.");
t3lib_extMgm::addPItoST43(, "pi1/class.tx_namederextension_pi1.php" ,"_pi1", "", 0);
?>
© maxhb
- When adding a frontend plugin you will have to add both an entry to the TCA definition of tt_content table AND to the TypoScript template which must initiate the rendering.
- Since the static template with uid 43 is the "content.default" and practically always used for rendering the content elements it's very useful to have this function automatically adding the necessary TypoScript for calling your plugin.
- determines the type of frontend plugin:
- "list_type" (default) - the good old "Insert plugin" entry
- "menu_type" - a "Menu/Sitemap" entry
- "splash_layout" - a "Textbox" entry
- "CType" - a new content element type
- "header_layout" - an additional header type (added to the selection of layout1-5)
- "includeLib" - just includes the library for manual use somewhere in TypoScript.
- (Remember that your definition should correspond to the column/items array in where you added the selector item for the element! See addPlugin() function)
- FOR USE IN ext_locallang.php FILES
- @param string is the extension key
- @param string is the PHP-class filename relative to the extension root directory. If set to blank a default value is chosen according to convensions.
- @param string is used as a - yes, suffix - of the class name (fx. "_pi1")
- @param string , see description above
- @param boolean If is set as USER content object (cObject) is created - otherwise a USER_INT object is created.
Geändert von Junior (10.11.2006 um 11:51 Uhr)
FreeBSD/Debian || MySQL 5.x || PHP.5.3 || TYPO3 3.6 - 4.5
Meine Stadt, meine Firma, mein Redaktionssystem.
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen