hi jousch & erst mal ein DICKES DANKE für deine schnelle antwort!
ich habe diesen beitrag auch über google gefunden auch auch bereits ausprobiert. ich habe die extension mittlerweile mehrfach deinstalliert und neu installiert.
die zeile in der datei class.tx_tipafriend.php habe ich jetzt noch einmal so überschrieben, wie dort beschrieben.
jetzt soll ich ja laut anleitung nur noch
tt_content.list {
20 {
11 = CASE
11.key.field = layout
11.0 =< plugin.tipafriend
}
}
in mein setup schreiben. das ist ja jetzt eigentlich egal, ob im TS-template für meine komplette seite oder in das TS-template für diese extension. ich habe beides mal probiert, aber es ändert leider nichts?
generelle frage an dich:
ich muss doch trotzdem den plugin auf einer inhaltsseite (bei mir die pid 10) einfügen, oder?
ich habe übrigens zum testen auch mal die static templates im extension manager installiert.
den plugin tipafriend [DEPRECATED] konnte ich ich so auch bei include static einfügen.
ich poste mal mein komplettes setup (von einer anderen seite - TYPO3 4.2.6 - übernommen, auf der es funktioniert).
Constants
plugin.tipafriend {
# cat=plugin.tipafriend/file; type=file[html,htm,tmpl,txt]; label= Template File: HTML-template file for display of the Tip-a-Friend form
file.templateFile = fileadmin/templates/tipafriend_template.html
# cat=plugin.tipafriend/typo; type=wrap; label= Wrap 1: This wrap is used in the template-file.
wrap1 = <font face="verdana" size="2" color="black"> | </font>
# cat=plugin.tipafriend/typo; type=wrap; label= Wrap 2: This wrap is used in the template-file.
wrap2 = <font face="verdana" size="1" color="black"> | </font>
# cat=plugin.tipafriend/color; type=color; label= Color 1: This bgcolor is used in the template-file.
color1 = #CCCCCC
# cat=plugin.tipafriend/color; type=color; label= Color 2: This bgcolor is used in the template-file.
color2 = #999999
# cat=plugin.tipafriend/color; type=color; label= Color 3: This bgcolor is used in the template-file.
color3 = #333333
# cat=plugin.tipafriend//; type=int+; label= PID for the Tip-form page.
PIDtipForm = 10
# cat=plugin.tipafriend/enable; type=boolean; label= Send page as HTML: If set, the mail is sent as an HTML mail.
htmlMail = 0
}
Setup
tt_content.list {
20 {
11 = CASE
11.key.field = layout
11.0 =< plugin.tipafriend
}
}
## Includes the newsLib:
includeLibs.ts_tipafriend = EXT:tipafriend/pi/class.tx_tipafriend.php
## This enables the tt_content.list item to display the news:
plugin.tipafriend >
plugin.tipafriend = USER
plugin.tipafriend {
userFunc = tx_tipafriend->main_tipafriend
code.field = select_key
templateFile = {$plugin.tipafriend.file.templateFile}
# Global wraps
wrap1.wrap = {$plugin.tipafriend.wrap1}
wrap2.wrap = {$plugin.tipafriend.wrap2}
color1.wrap = {$plugin.tipafriend.color1}
color2.wrap = {$plugin.tipafriend.color2}
color3.wrap = {$plugin.tipafriend.color3}
typolink.parameter = {$plugin.tipafriend.PIDtipForm}
htmlmail = {$plugin.tipafriend.htmlMail}
}
ich habe mich bei der typo3-version übrigens vertan: ich benutze 4.5.11