[Typo3-UG Oesterreich] Guestbook
Bernhard Kraft
kraftb at mokka.at
Wed Feb 18 16:24:51 CET 2004
Hallo !
Kann mir jemand helfen das Guestbook zum laufen zu bringen ?
Ich habe das Plugin "tt_guest" installiert.
Dann habe ich die notwendigen Einstellungen
in Constants und Setup des Templates vorgenommen.
(siehe unten)
Ich habe Constants und Setup vom statischen
Template "plugin.tt_guest" übernommen.
Siehe:
http://typo3.org/doc.0.html?&encryptionKey=&tx_extrepmgm_pi1[extUid]=1361&tx
_extrepmgm_pi1[tocEl]=3837&cHash=d2f16e0a7f
Trotzdem kommt auf der Seite auf der das Plugin
eingefügt ist immer nur eine leere Seite
Folgend noch die einstellungen die ich im constants
und setup field vorgenommen habe:
CONSTANTS:
--------------------- snip -----------------------
plugin.tt_guest >
plugin.tt_guest {
file.templateFile = media/scripts/guest_template1.tmpl
notifyEmail =
wrap1 = <font face="verdana" size=2 color=black> | </font>
wrap2 = <font face="verdana" size=1 color=black> | </font>
color1 = #cccccc
color2 = #999999
color3 = #333333
}
--------------------- snip -----------------------
SETUP:
--------------------- snip -----------------------
## Includes the guestLib:
includeLibs.ts_guest = media/scripts/guestLib.inc
## Sets up the fields, that may be submitted in order to create items.
Mandatory!
FEData.tt_guest >
FEData.tt_guest {
processScript = media/scripts/guest_submit.inc
processScript.notifyEmail = {$plugin.tt_guest.notifyEmail}
default {
hidden = 0
}
allowNew {
title = 1
note = 1
cr_name=1
cr_email=1
www=1
}
autoInsertPID = 1
doublePostCheck = doublePostCheck
}
## This enables the tt_content.list item to display the guestbook:
plugin.tt_guest >
plugin.tt_guest = USER
plugin.tt_guest {
userFunc = user_guest->main_guestbook
templateFile = {$plugin.tt_guest.file.templateFile}
pid_list.field = pages
code.field = select_key
# Global wraps
wrap1.wrap = {$plugin.tt_guest.wrap1}
wrap2.wrap = {$plugin.tt_guest.wrap2}
color1.wrap = {$plugin.tt_guest.color1}
color2.wrap = {$plugin.tt_guest.color2}
color3.wrap = {$plugin.tt_guest.color3}
# Change/add to format the content:
age_stdWrap.age = 1
date_stdWrap.strftime= %e-%m-%y
time_stdWrap.strftime= %H:%M:%S
author_stdWrap.case = upper
www_stdWrap.typolink.parameter.field = www
email_stdWrap.typolink.parameter.field = cr_email
requireRecords = 1
# Change/add to format the submit-form
postform < styles.content.mailform
postform.data >
postform.dataArray {
10.label = Header:
10.type = *data[tt_guest][NEW][title]=input
20.label = Your comment:
20.type = *data[tt_guest][NEW][note]=textarea
30.label = Name:
30.type = *data[tt_guest][NEW][cr_name]=input
40.label = Email:
40.type = *data[tt_guest][NEW][cr_email]=input
50.label = Homepage:
50.type = *data[tt_guest][NEW][www]=input
60.type = formtype_db=submit
60.value = Add yourself
}
postform.no_cache=1
}
## This enables the tt_content.record item to display guestbook items:
tt_guest >
tt_guest = < plugin.tt_guest
tt_guest.displayCurrentRecord = 1
--------------------- snip -----------------------
grüsse,
Bernhard
-----------------------------------------
Bernhard Kraft
<kraftb at mokka.at>
MOKKA MEDIENAGENTUR GMBH
Mariahilferstrasse 170
1150 Wien
T: 01 895 33 33 50
M: 0676 560 14 14
F: 01 895 33 33 20
www.mokka.at
-----------------------------------------
More information about the TYPO3-at
mailing list