Created
June 20, 2016 14:34
-
-
Save DirkWolke/df3fe1f10e80a6a5555c152e14b9d861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.