typo3-extensions

TYPO3 Extbase: update record with logging of changes

烈酒焚心 提交于 2019-12-02 20:04:24
问题 When I update an object with an Extbase repository (e.g. in a cronjob or in the frontend) like this... $myRepository->update($myObject); and afterwards I use button "Display change history / Un-do" for this record in TYPO3 BE, I don't see any history. I only see a history when editing the object in TYPO3 BE. How can I enable the history? 回答1: Short version: you can't, because the history is for changes done in the backend interface only. Longer version: you sort of, kind of can, but that

Good practice on how to set up routeEnhancers for list and detail view of ext:news?

守給你的承諾、 提交于 2019-12-02 11:40:46
问题 Precondition The ext:news list view plugin is on page www.domain.com/news [ID 9] and the detail view on www.domain.com/article [ID 39]. Following the official example (docs.typo3.org) I tried the "Extbase Plugin Enhancer" example of the feature description, but that caused some problems: The pagebrowser link to page 2 has a cHash: news/list/2?cHash=123456789 The pagebrowser link from page 2 to page 1 has lots of get-parameters: news?tx_news_pi1%5Baction%5D=list&tx_news_pi1%5Bcontroller%5D

TYPO3 - TCA in ext_tables.php check and TCA/Overrides for v8

浪尽此生 提交于 2019-12-02 11:27:32
Updated ext_tables.php, TCA and TCA/Overrides for TYPO3 8LTS? I moved the TCA definitions from ext_tables.php to /TCA folder and the query in list view is working again: ext_tables.php <?php if (!defined('TYPO3_MODE')) {die('Access denied.');} \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( $_EXTKEY, 'Code', 'Description' ); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_code_domain_model_code', 'EXT:code/Resources/Private/Language/locallang_csh_tx_code_domain_model_code.xlf'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility:

How do you translate EXT:Form forms in TYPO3 CMS 8.7 LTS?

浪子不回头ぞ 提交于 2019-12-02 10:36:12
I'm new to TYPO3 and starting out with 8.7 LTS. I have created several forms with the default "form" extension. My site requires some of these forms to be translated into up to 5 other languages. So far the only solution I've found is to copy the forms and then have a separate form for each translation, but this does not seem like the best solution, as long term it would lead to form divergence. Is it possible to add alternate translations directly in the YAML file or point to a translation file that should be used? Here an example, like I use on a page: For frontend translation add this to

TYPO3 Extbase: update record with logging of changes

泪湿孤枕 提交于 2019-12-02 09:50:42
When I update an object with an Extbase repository (e.g. in a cronjob or in the frontend) like this... $myRepository->update($myObject); and afterwards I use button "Display change history / Un-do" for this record in TYPO3 BE, I don't see any history. I only see a history when editing the object in TYPO3 BE. How can I enable the history? Short version: you can't, because the history is for changes done in the backend interface only. Longer version: you sort of, kind of can, but that would involve quite a bit of custom code in your repository which would do one of two things: Override the

TYPO3 TCA execute hook after object save in backend

旧街凉风 提交于 2019-12-01 07:12:02
问题 I want to manipulate some values and execute a custom function if an object is saved trought the backend. I found trought my google search that I have to specify this in my ext_localconfphp : $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['extkey'] = 'Vendor\\Extension\\Hook\\TCEmainHook'; $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['extkey'] = 'Vendor\\Extension\\Hook\\TCEmainHook';