typoscript

TYPO3 6.2 performance, Typoscript Select, Typoscript Cache

时光总嘲笑我的痴心妄想 提交于 2020-01-07 05:50:15
问题 The problem itself is solved, but the question is still open cause I want to test the tipps from Krystian. See Edit 3 at the bottom of this question. I have a TYPO3 project that is very slow. So I did some tests and found some problems. I tested the startpage, the startpage containers 2 news list (total 9 articles) (tx_news version 2.3.0 - not the newest one). It contains the menu (created with fluid v:page.menu), the footer (also created with v:page.menu), a right column (mainly image

Typo3 7.6 typoscript problems with markers

浪子不回头ぞ 提交于 2020-01-07 05:05:13
问题 I have the following typoscript code page.20 = TEMPLATE page.20.template = FILE page.20.template.file = fileadmin/design/index.html page.20.marks{ CONTENT < styles.content.get CONTENT.renderObj.stdWrap.dataWrap=<div class="col-md-12">|</div> CONTENTLEFT < styles.content.getLeft #CONTENTLEFT.renderObj.stdWrap.dataWrap=<div class="col-md-5">|</div> CONTENTRIGHT< styles.content.getRight #CONTENTRIGHT.renderObj.stdWrap.dataWrap=<div class="col-md-7 text">|</div> TOPIMAGE< styles.content.getBorder

TYPO3 sys_language_mode = content_fallback doesn't work on menu

我是研究僧i 提交于 2020-01-06 08:13:40
问题 I've just learned how to use "sys_language_mode = content_fallback" and as far as see it works like a charm. I am using TYPO3 6.0.6 with content_fallback and for content elements its working all over my installation. But, and that's my issue at the moment, i couldn't get it to work with my menus. All menus are allways switching back to the original "default" language. First reflex was to use a workaround in HMENU, but there's no way to select by language and now I am stuck for two days. Hope

typo3 styles.content.get not working

邮差的信 提交于 2020-01-05 04:10:09
问题 I've testing with TYPO3 7.6.9 and tried the following without success: # Default PAGE object: page = PAGE page.10 < styles.content.get I want to get the normal content from the typo3 page, but it not show anything. Please help me, Thanks. 回答1: Check if you have included the static template like in the screenshot below: 来源: https://stackoverflow.com/questions/38494056/typo3-styles-content-get-not-working

TYPO3 - Howto disable cache for specific content element on a page?

为君一笑 提交于 2020-01-03 01:47:29
问题 Is it possible to disable the caching for one specific element on pages? I tried already the following typoscript, as described in this answer, but it is not working for me (TYPO3 v8): tt_content.textmedia.20 = USER_INT I am using ext:fluid_styled_content with custom CTypes. From my understanding the above typoscript should disable the caching for the content element "Text & Media" (just as an example). My custom element reads live data from an API using a ViewHelper. But the ViewHelper is

Adding the page content to a fluid template

浪子不回头ぞ 提交于 2020-01-01 07:30:15
问题 I'm new to TYPO3 and Fluid and trying to display the page content using a Fluid template similar to the following one: <div id="content"> <f:format.html>{content}</f:format.html> </div> The page data is entered via the backend using a two-column layout ( colPos=0, colPos=1 ). I am now trying to display the content of the first column ( colPos=0 ) inside the div. At the moment, my TYPO-Script looks like the following: page = PAGE page { # ... 5 = FLUIDTEMPLATE 5 { file = fileadmin/templates

TYPO3: Backend Layout Condition in TypoScript

余生颓废 提交于 2019-12-31 04:13:25
问题 I'd like to change the way elements are rendered depending on the page's backend layout. Changing the fluid styled content template depending on the backend layout works as following: [globalVar = TSFE:page|backend_layout = 1][globalVar = TSFE:page|backend_layout = 2] lib.fluidContent.templateRootPaths.10 = EXT:ds_res/Resources/Private/Templates/ContentTemplates/ [global] If it's 1 or 2, then use the other templates. However , this only works if the BE layout is set directly at the page and

What is the best usage of TypoScript in Fluid templates?

泪湿孤枕 提交于 2019-12-29 07:55:13
问题 If I want to use TypoScript like menu generation in a Fluid template I have two possible ways: use the TypoScript to fill a variable for the template. doing it like this: page.10 = FLUIDTEMPLATE page.10 { templateName = index.html // ... define pathes ... variables { contentMain < styles.content.get mainMenu < temp.mainMenu : } } and in the template just use the variable: <div class="header"> <div class="logo">{logo->f:format.raw()}</div> <div class="main-menu">{mainMenu->f:format.raw()}</div

typoscript backend_layout_next_level not working

一曲冷凌霜 提交于 2019-12-25 12:52:06
问题 I have the following config page = PAGE page { typeNum = 0 10 = FLUIDTEMPLATE 10 { templateRootPath = EXT:folder/Resources/Private/Website/Templates/ partialRootPath = EXT:folder/Resources/Private/Website/Partials/ layoutRootPath = EXT:folder/Resources/Private/Website/Layout/ file.stdWrap.cObject = CASE file.stdWrap.cObject { key.data = levelfield:-1, backend_layout_next_level, slide key.override.field = backend_layout default = TEXT default.value = whatever.html 1 < .default 2 = TEXT 2.value

Change image margin in Typo3

淺唱寂寞╮ 提交于 2019-12-25 12:41:50
问题 When creating a 'Text & Images' element in Typo3 how can you adjust the left/right margin around the images? The default margin between text and images is too small, is there a line I can add to the template to set a custom margin or something else? Any help appreciated. 回答1: If you use css_styled_content then you can configure this with constants. styles.content.imgtext.textMargin = 10 Just over the backend or over TS: Valid constants: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3