Ergebnis 1 bis 1 von 1

Thema: Wie kann ich das Caching von Extensions steuern?

      
  1. #1
    TYPO3 Forum Team Moderator Avatar von maxhb
    Registriert seit
    19.08.2004
    Ort
    Bremen
    Beiträge
    1.810

    Wie kann ich das Caching von Extensions steuern?

    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:

    PHP-Code:
    <?php
    if (!defined ("TYPO3_MODE"))     die ("Access denied.");
    t3lib_extMgm::addPItoST43(, "pi1/class.tx_namederextension_pi1.php" ,"_pi1"""0);
    ?>
    Die Methode addPItoST43 wird dabei wie folgt parametrisiert (aus t3lib/class.t3lib_extmgm.php):

    • 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.
    © maxhb
    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

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Facebook Kommentare

Ähnliche Themen

  1. Kann keine Extensions installieren
    Von eastpower im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 7
    Letzter Beitrag: 10.08.2007, 12:46
  2. Kann Extensions nicht installieren und beim Import kommt Fehler Meldung
    Von bjs1977 im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 4
    Letzter Beitrag: 09.05.2007, 19:58
  3. Wie kann ich für Extensions Formatierungen ändern?
    Von Thoral im Forum FAQ - Extensions
    Antworten: 0
    Letzter Beitrag: 08.11.2006, 16:59
  4. Wo kann ich Extensions runterladen?
    Von linksblinker im Forum FAQ - Extensions
    Antworten: 0
    Letzter Beitrag: 08.11.2006, 16:36
  5. Antworten: 0
    Letzter Beitrag: 08.11.2006, 13:52

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238