AW: [Typo3-UG Oesterreich] CONSTANTS von PHP aus

Tilli Weissenberger tilli at weissenberger.at
Wed Feb 4 17:56:08 CET 2004


Hi Masi,

Also ich kann mir nicht helfen. In $conf steht immer nur:
userFunc tx_SHSOAPV2_pi1->main
 
Meine ext_typoscript_constants.txt definiert ein paar Werte:
//auch probiert mit plugin.SH_SOAP_V2, und mit *.SHSOAPV2
content.SH_SOAP_V2 {
  products.defLang = 1
  products.refreshProdXmlMins = 60
  products.refreshStockMins = 5
}

Hab' mir das Modul tt_news angesehen und komm nicht dahinter, wieso die z.b.
mittels $conf["templateFile"] auf plugin.tt_news.file.templateFile
zugreifen. In dessen ext_typoscript_setup.txt sehe ich einen Block, der das
erklären könnte, aber wenn ich das Selbe in mein *_setup.txt reinschreib,
ist mein $conf immer noch (fast) leer:

plugin.tt_news >
plugin.tt_news = USER
plugin.tt_news {
  userFunc = tx_ttnews->main_news
  templateFile = {$plugin.tt_news.file.templateFile}
  ...
}

Ich muss dazu sagen, dass ich meine Ext nicht als PlugIn erstellt habe,
sondern es fügt einen neuen Content-Typ (wie Text, Text/Bild etc) hinzu.

Lg, TW

typo3-at-bounces at lists.netfielders.de wrote:
> "Tilli Weissenberger" <tilli at weissenberger.at> writes on Tue,
> 03 Feb 2004 00:25:34 +0100 (MET):
> 
>> 
>> Also ich versuch' jetzt schon alle möglichen Variablen und suche auch
>> die Docs auf typo3.org durch, finde aber nicht, wie zum Geier ich auf
>> die CONSTANTS meines Plug-Ins (vom Plugin aus) zugreifen kann.
> 
> 
> Wozu willst du das?
> 
> Üblicherweise lässt man die Konstanten in ein Setup laufen
> und fragt dieses via das $conf Argument ab.
> 
> Masi
> 
> _______________________________________________
> Typo3-at mailing list
> Typo3-at at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-at





More information about the TYPO3-at mailing list