Skip to content

Instantly share code, notes, and snippets.

@DirkWolke
Created June 20, 2016 14:34
Show Gist options
  • Save DirkWolke/df3fe1f10e80a6a5555c152e14b9d861 to your computer and use it in GitHub Desktop.
Save DirkWolke/df3fe1f10e80a6a5555c152e14b9d861 to your computer and use it in GitHub Desktop.
// Speichern in einer anderen Datenbank hier in News
plugin.tx_powermail.settings.setup {
dbEntry {
# Enable or disable db entry for table tx_news_domain_model_news
tx_news_domain_model_news {
_enable = TEXT
_enable.value = 1
author = TEXT
author.field = anzeige_name
author_email = TEXT
author_email.field = anzeige_email
pid = TEXT
pid.data = TSFE:id
datetime = TEXT
datetime.data = date:U
crdate = TEXT
crdate.data = date:U
crdate.strftime = Date: %d.%m.%Y
title = TEXT
title.field = anzeige_titel
bodytext = TEXT
bodytext.field = anzeige_text
categories = TEXT
categories.value = 1
}
sys_category_record_mm {
_enable = TEXT
_enable.value = 1
tablenames = TEXT
tablenames.value = tx_news_domain_model_news
fieldname = TEXT
fieldname.value = categories
uid_foreign = TEXT
uid_foreign.field = uid_tx_news_domain_model_news
uid_local = TEXT
uid_local.field = anzeige_cat
}
}
}
@einpraegsam
Copy link

As it is written in the manual (see https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/BestPractice/SavingValuesToThirdPartyTables/Index.html) your code is outdated.
For powermail 3.x you should use numbers instead of tablenames for keys and use the property _table.
This settings makes it possible create more than one entry for the same tablename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment