typoscript

rendered links in HTML element in typo3 9

谁都会走 提交于 2019-12-11 16:43:43
问题 Default behaviour of Typo3 is that Typo3-Links are not rendered in a HTML-element. There is a workaround, see here: How to get rendered links of a HTML element in TYPO3 7.6 Unfortunately, in Typo3 9.5.7 this seems not to work. As described above, I replaced html.html by this: <f:format.htmlentitiesDecode> <f:format.html parseFuncTSPath="lib.parseFunc"> {data.bodytext} </f:format.html> </f:format.htmlentitiesDecode> I also replaced html.html by this, did't work for me: <f:format.html>{data

Service Unavailable (503) No TypoScript template found

和自甴很熟 提交于 2019-12-11 16:30:28
问题 I tried to install the introduction package in Typo3 cms. But I receive the following error: Service Unavailable (503) No TypoScript template found! 回答1: You might need to include the package into your core template in Typo3. Whenever you are using a new package/extension which having template files, you are needed to added those in your root template. Go to Template Menu in the typo3 backend Select the root page from the treelist on the left side panel (it might be Congratulations). Choose

How do I query a backend layout which is set by parent page?

痞子三分冷 提交于 2019-12-11 16:25:26
问题 Currently I am using the following conditional TypoScript to check which backend layout is set: [globalVar = TSFE:page|backend_layout = 2] // some typoscript [global] In addition I have a site tree structure like this: - rootPage1 - page1 - page2 - page3 - rootPage2 - page1 - page2 Now I want to use a different backend layout for rootPage2 and all childs of this page. So I have configured this page as follows: This works as expected and set a different backend layout for rootPage2 and all his

Typo3 : using typoscript to modify the base-url

梦想的初衷 提交于 2019-12-11 16:07:18
问题 I am trying out TYPO3's introduction package. For that I am using Xampp on my computer. I have installed it in a subdirectory, but since it uses "real-url", I need to modify the generated links, so that instead of http://localhost/about-typo3/ I get http://localhost/subfolder/about-typo3/ I believe it must be done via "typo-script", and from what I have read on the Internet, this line should do the job : config.baseURL = http://localhost/subfolder/ But I don't know where I should put it. I

TYPO3 content on one page order by position in pagetree

让人想犯罪 __ 提交于 2019-12-11 14:48:37
问题 I'm showing all content from the subpages on one page: lib.allPid = COA lib.allPid { 10 = HMENU 10 { #entryLevel = 1 special = directory special.value = 115 1 = TMENU 1 { expAll = 1 NO.doNotShowLink = 1 NO.allStdWrap.field = uid NO.allStdWrap.wrap = |, } 2 < .1 } } lib.allContent = CONTENT lib.allContent { table = tt_content select { pidInList.cObject < lib.allPid where = colPos = 0 orderBy = pid DESC } } Here the content is ordere by pid DESC. But I'd like to order the content from the

How to apply a different wrap in a TMENU for certain items only?

非 Y 不嫁゛ 提交于 2019-12-11 13:07:07
问题 In a TMENU, I would like to apply a special wrap to certain pages only. So of Home -- This -- That -- Such -----A -----Thing Only the page "Such" would have this wrap (with a special class or an icon for wrapItemsAndSub). Ideally, this could be done from the page tree / from the CMS. Or by pid. But I think it's not possible to reach into the TMENU in an easy way? OptionSplit is not an option, as it's only a few special pages. Can this be done and how? 回答1: BTW: as pgampe said it can be of

Combining TypoScript and Fluid: Iterations?

扶醉桌前 提交于 2019-12-11 12:47:22
问题 I'm combining a TypoScript CONTENT Object with a fluid template. In the page template: <f:cObject typoscriptObjectPath="lib.myItem" /> In TS: lib.myItem = CONTENT lib.myItem { table = tt_content select.where = colPos = 0 select.languageField = sys_language_uid renderObj = FLUIDTEMPLATE renderObj { file = {$customContentTemplatePath}/Myfile.html layoutRootPath = {$customContentLayoutPath} partialRootPath = {$customContentPartialPath} dataProcessing { 10 = TYPO3\CMS\Frontend\DataProcessing

Change wrap of TMENU when active menu item has a submenu

主宰稳场 提交于 2019-12-11 11:05:59
问题 I want to change the wrap of a TMENU if the current active menu item has a submenu ( ACTIFSUB ). Below is a excerpt of my typoscript: lib.navigation = HMENU lib.navigation { 1 = TMENU 1 { wrap = <ul class="m-navigation-list">|</ul> # if the current active menu item has a submenu, change the wrap to this: # wrap = <ul class="m-navigation-list m-navigation-list--parent">|</ul> ACTIFSUB = 1 ACTIFSUB { wrapItemAndSub = <li class="m-navigation-item m-navigation-link--parent m-navigation-link-

TYPO3: disable cache for specific plugin / extension

安稳与你 提交于 2019-12-11 07:40:03
问题 I built an extension and a plugin where frontend-users can edit their profile but I noticed a critical issue: Under "Edit profile", users could see the full information about another user who wasn't even logged in. Apparently the form was a cached on the server because after adding: config.no_cache = 1 it didn't happen again. Now the issue is that indexing is disable on the whole website. Is there a way to disable caching only for this specific extension / plugin ? 回答1: You should have

Typo3 TypoScript and AND Conditions with globalVar

北慕城南 提交于 2019-12-11 06:16:13
问题 I have the following typoscript, I only want it execute when Language is 1 and page ID is 1432 [globalVar = GP:L =1][globalVar = TSFE:id = 1432] lib.atoz = TEXT lib.atoz.value (some test ) [global] However it seems to execute when the first condition is matched not both, it appears to be something to do with globalVar ? Solved [globalVar = GP:L =1] AND [globalVar = TSFE:id = 1432] lib.atoz = TEXT lib.atoz.value (some test ) [global] 来源: https://stackoverflow.com/questions/57426653/typo3