Hallo,
Typo3 6.2.
Sender: Powermail
Empfänger: Datenbank News
folgende Frage, weiß jemand, wie ich ein Foto über ein Powermail-Formular in einer anderen Datenbank speichern kann? Wollte es gern in der News Extension speichern.
Mit folgendem Code bekomme ich das für normale Felder hin, aber Fotos scheint ein spezieller Fall zu sein. Hat jemand eine Lösung?
#Speichern in einer anderen Datenbank hier in News
plugin.tx_powermail.settings.setup {
# Save values to any table (example for tx_news...)
dbEntry {
#####################################################
### EXAMPLE for adding values to table tx_news ###
#####################################################
# Enable or disable db entry for table tx_news...
tt_news._enable = TEXT
tt_news._enable.value = 1
# Write only if any field is not yet filled with current value (e.g. test if an email is already in database)
# default: always add new records (don't care about existing values)
# update: update record if there is an existing entry (e.g. if email is already there)
# none: no entry if field is filled (do nothing if record already exists)
#tt_address._ifUnique.email = update
# Fill new record of table "tt_address" with field "email" with a static value => mail@mail.com
#tt_address.email = TEXT
#tt_address.email.value = mail@mail.com
# Fill new record of table "tx_news..." with field "pid" with the current pid (e.g. 12)
tt_news.pid = TEXT
tt_news.pid.value = 24
# Fill new record of table "tx_news..." with field "tstamp" with the current time as timestamp (like 123456789)
tt_news.datetime = TEXT
tt_news.datetime.data = date:U
# Fill new record of table "tx_news..." with field "datetime" with the current formatted time (like "Date: 20.01.2013")
tt_news.crdate = TEXT
tt_news.crdate.data = date:U
tt_news.crdate.strftime = Date: %d.%m.%Y
# Fill new record of table "tx_news..." with field "title" with the value from powermail {firstname}
tt_news.title = TEXT
tt_news.title.field = title
# Fill new record of table "tt_address" with field "name" with the value from powermail {firstname}
#tx_news_domain_model_news.categories = TEXT
#tx_news_domain_model_news.categories.field = categories
# Save value of tag id in tx_news / selection field / categories in form of powermail
tt_news.category = TEXT
tt_news.category.field = categories
# Fill new record of table "tx_news..." with field "teaser" with the value from powermail {lastname}
tt_news.short = TEXT
tt_news.short.field = teaser
# Fill new record of table "tx_news..." with field "news" with the value from powermail {company}
tt_news.bodytext = TEXT
tt_news.bodytext.field = news
tt_news.image = TEXT
tt_news.image.field = image
##############################################################
### EXAMPLE for adding values to table tt_address_group_mm ###
### Add relation to an existing address group with uid 123 ###
##############################################################
# Enable or disable db entry for table tx_news_domain_model_news_tag_mm
tt_news_cat_mm._enable = TEXT
tt_news_cat_mm._enable.value = 1
# Fill new record of table "ttx_news_domain_model_news_tag_mm" with field "uid_local" with uid of tt_address record that was just created before with .field=uid_[tablename]
tt_news_cat_mm.uid_local = TEXT
tt_news_cat_mm.uid_local.field = uid_tt_news
# Fill new record of table "tx_news_domain_model_news_tag_mm" with field "uid_foreign" with uid 123
tt_news_cat_mm.uid_foreign = TEXT
tt_news_cat_mm.uid_foreign.field = categories
tt_news_cat_mm.sorting = TEXT
tt_news_cat_mm.sorting.value = 1
#sys_file.name.field = TEXT
#sys_file.name.field = image
#sys_file_reference.uid_foreign.table_local.field = TEXT
#sys_file_reference.uid_foreign.table_local.field = sys_file
}
}