typo3

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

Typolink content in menu?

蹲街弑〆低调 提交于 2019-12-02 19:56:10
问题 I am trying to make a menu that displays the page's first content element header and image and have them be links. But the typolink part doesn't seem to work for me: lib.menu = HMENU lib.menu { 1 = TMENU 1.NO { doNotLinkIt = 1 wrapItemAndSub = <div>|</div> stdWrap.cObject = CONTENT stdWrap.cObject { table = tt_content select { pidInList.field = uid } renderObj = COA renderObj { 10 = TEXT 10.field = header 10.typolink.parameter.field = uid } } } } 回答1: Just to add give the full working example

How to include a custom CSS file in TYPO3

北城以北 提交于 2019-12-02 18:22:34
问题 I need to build an Extension in typo3 7.6.I include a css file in setup.txt using page.IncludeCSS = Ext.Path_to_css_file.css But the styles in my css file is override by some other custom styles.How can I prevent this.Any Idea? I am new to typo3.Please help me.Thank you in advance. 回答1: You have to give each css file you want to include a unique key (e.g. myCssFile1 ). Also use a colon after the EXT: . So the correct way of including a CSS file with TypoScript would be page.includeCSS

TYPO3 groupedFor viewhelper according to dates

China☆狼群 提交于 2019-12-02 17:41:32
问题 I have a simple model "item" with 3 properties: title, description, date Now I want to have a list like this: 10.10.17: title item 1 title item 5 12.10.17: title item 8 and so on According to groupedFor - grouping objects according to dates I added a getter like /** * Get day month year of datetime * * @return int */ public function getDayMonthYearOfDatetime() { return (int)$this->datum->format('dmy'); } My list view: <f:groupedFor each="{items}" as="dayMonthYearOfDatetime" groupBy=

Bootstrap 4 Sticky Footer Not Sticking

冷暖自知 提交于 2019-12-02 17:40:13
Not really sure why the sticky footer isn't working in Bootstrap 4. I have a TYPO3 website which I am a beginner at. The sticky footer is not sticking at the bottom of the page. Here is a copy of the page source as it has been rendered. I basically copied the html file from bootstraps docs folder and then modified it and copied it into my TYPO3 template. If I fill the page with content, the footer does not stick - I have to scroll the page down to see it. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Landing Page</title> <meta name="generator" content="TYPO3 CMS"> <link

typo3 site offline after extension upload

☆樱花仙子☆ 提交于 2019-12-02 12:06:52
I just uploaded a new extension to a typo3 site and the site went offline. I am getting a '500 internal server error'. What can I do to rewind the operation and/or to bring the site online again? Try to uninstall the extension via the extension manager module in the backend. If that is broken too then you need to do so via manually editing the configuration file. it's located in the typo3conf folder and named localconf.php for version 4.x and LocalConfiguration.php for version 6.x. For localconf.php you need to erase the key of that extension from the two extList entries. There are two: one

Entity to Datamap/Array

流过昼夜 提交于 2019-12-02 11:50:44
问题 I have an Entity like that: class Company extends AbstractEntity { /** * @var string */ protected $longName = ''; //much more properties //all the setters and getters } I would like to use the DataHandler from the typo3 core to save such an Entity, because saving the entity should trigger the whole workspace mechanics, such that the updated Object/Entity/row is created as a new version. Extbase directly writes to the Database, what bypasses that. Basically one can use the api like so: $data =

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 to get rendered links of a HTML element in TYPO3 7.6

旧巷老猫 提交于 2019-12-02 11:17:12
问题 IN TYPO3 versions before 7.6 it was possible to render links inside the content element HTML by using the TypoScript tt_content.html.parseFunc.tags.link < lib.parseFunc.tags.link This does not work anymore since 7.6. How can it be solved? 回答1: There are a couple of possible solutions for this question. 1.) Use fluid_styled_content. I guess that now fluid_styled_content instead of css_styled_content is used. Therefore the used TypoScript does not work anymore. A valid solution would be to