typoscript

Display TMENU.2 even if it has no submenu points (but content)

Deadly 提交于 2021-02-08 11:44:18
问题 This may sound strange, but I have a menu where the first page has no real subpages. However, it has an appended COA with 2 custom TMENU's and a plugin insertion. But: The subnavigation for this page is only generated when I add a visible subpage to this page (which would be a workaroud). Is there a better solution to get this menu visible? Here's the typoscript: field_main_navigation = HMENU field_main_navigation { 1 = TMENU 1 { expAll = 1 NO. wrapItemAndSub = <div class="wrap-itemAndSub">|<

TYPO3 9.5.4 CKEditor RTE deletes style attributes

Deadly 提交于 2021-01-28 18:44:08
问题 I updated a TYPO3 website from 7->8->9. Now the problem is that the RTE CKEditor keeps deleting style attributes and even styles. So and old Element with content: <div class="mobilr"> <table height="655" width="972" style="vertical-align: middle; background-color: rgb(255, 255, 255); border-style: solid; border-color: rgb(187, 187, 187);" class="centertable"> <tbody> <tr style="vertical-align: middle;"> <td> <p> </p> .... is loaded in the editor as: <table class="centertable" style="height

TYPO3: check if current page is translated by typoscript

本秂侑毒 提交于 2021-01-28 09:03:22
问题 For the generation of the canonical tag by typoscript, I need to check if the current page is translated. If not, the canonical needs to point to the url in default language. How can I check if current page is translated by typoscript? Language handling in my typoscript config: sys_language_overlay = 1 sys_language_mode = content_fallback 回答1: If anyone is interested, I have worked out a solution to my task: Render the canonical url in default language if there is no translation for the

Get TYPO3 Plugin settings from FlexForms in controller

♀尐吖头ヾ 提交于 2021-01-24 08:09:29
问题 I have a FE Plugin which uses a FlexForm MyExtFlexForm which is used to set certain configurations like limit or SourcePage etc.. In my controller action list I get these settings using $this->settings . Works fine till now. Now, I make AJAX calls to action update and I need to use the same settings which have been set earlier through the FlexForm for the FE plugin on this page. $this->settings does not show anything . I checked $GLOBALS['TSFE']->tmpl->setup['plugin']['MyExt.']['settings.']

Get TYPO3 Plugin settings from FlexForms in controller

柔情痞子 提交于 2021-01-24 08:07:52
问题 I have a FE Plugin which uses a FlexForm MyExtFlexForm which is used to set certain configurations like limit or SourcePage etc.. In my controller action list I get these settings using $this->settings . Works fine till now. Now, I make AJAX calls to action update and I need to use the same settings which have been set earlier through the FlexForm for the FE plugin on this page. $this->settings does not show anything . I checked $GLOBALS['TSFE']->tmpl->setup['plugin']['MyExt.']['settings.']

Get TYPO3 Plugin settings from FlexForms in controller

荒凉一梦 提交于 2021-01-24 08:06:38
问题 I have a FE Plugin which uses a FlexForm MyExtFlexForm which is used to set certain configurations like limit or SourcePage etc.. In my controller action list I get these settings using $this->settings . Works fine till now. Now, I make AJAX calls to action update and I need to use the same settings which have been set earlier through the FlexForm for the FE plugin on this page. $this->settings does not show anything . I checked $GLOBALS['TSFE']->tmpl->setup['plugin']['MyExt.']['settings.']

TYPO3 FAL in Flexform

爷,独闯天下 提交于 2021-01-20 08:27:42
问题 I have a flexform with following code: <image> <TCEforms> <label>LLL:EXT:my_slider/Resources/Private/Language/locallang.xlf:flexform.slider.main.slider.image</label> <config> <type>group</type> <internal_type>file</internal_type> <allowed>jpg, jpeg, gif, png</allowed> <show_thumbs>1</show_thumbs> <minitems>0</minitems> <maxitems>1</maxitems> <size>1</size> </config> </TCEforms> </image> Until now this worked. But now in TYPO3 10 I get this error: TCA internal_type of field "image" in table tt

TYPO3: How can i assign page into page?

 ̄綄美尐妖づ 提交于 2020-06-29 04:27:09
问题 I have locations that are created as a subpage in TYPO3. All contact person's created as a subpage. I want to assign a contact person to a related location. How can we assign and get detail of contact persons in the Location page? 回答1: There is a content element called "shortcut" which mirrors content elements on other paages. Don't copy the content element with the contact data 来源: https://stackoverflow.com/questions/62215137/typo3-how-can-i-assign-page-into-page

TYPO3 Produce images in different sizes

空扰寡人 提交于 2020-04-18 00:47:42
问题 I have this implementation, using it in a page level 2 submenu. Each level 2 menu has multiple subpages. Each subpage has one image. So this implementation produces an image from each page for each submenu. For example, a submenu with 2 subpages will have 2 images (one from each subpage). 1 = FILES 1 { references { table = pages fieldName = media data = levelmedia:-1, slide } begin = 0 maxItems = 2 renderObj = COA renderObj { 2 = IMAGE 2 { file { //params = -sharpen 50 +profile "*" -quality

Set TYPO3 page cache lifetime to an exact month (and not 31 days)

眉间皱痕 提交于 2020-03-22 09:31:30
问题   i have a page with a TYPO3 plugin, that shows the "tip of the month". I populated items in the list module, having a start/end date to the respective month. The thing is I have to either disable the cache (or set it to only 1 day) or flush it manually, or the tip of the last month is still shown. I want the page to be cached, but the cache only be valid until the 1st of each month. Setting page lifetime in the background to "1 month", actually sets a lifetime of 2678400 seconds (31 days),