typoscript

TYPO3 mark root page as active

[亡魂溺海] 提交于 2019-12-25 11:55:49
问题 In my TYPO3 6.2.31 (I know...) page I have the following typoscript for the navigation: NAVIMAIN = HMENU NAVIMAIN.entryLevel = 0 #NAVIMAIN.excludeUidList = NAVIMAIN { 1 = TMENU 1 { expAll = 1 wrap = <ul class="sf-menu">|</ul> noBlur = 1 NO = 1 NO.ATagTitle.field = title NO.wrapItemAndSub = <li>|</li> ACT = 1 ACT.wrapItemAndSub = <li class="active"> |</li> } 2 = TMENU 2 { expAll = 1 maxItems = 10 wrap = <div class="sf-mega">|</div> NO = 1 NO { ATagTitle.field = title wrapItemAndSub = <div

TYPO3 mark root page as active

非 Y 不嫁゛ 提交于 2019-12-25 11:54:19
问题 In my TYPO3 6.2.31 (I know...) page I have the following typoscript for the navigation: NAVIMAIN = HMENU NAVIMAIN.entryLevel = 0 #NAVIMAIN.excludeUidList = NAVIMAIN { 1 = TMENU 1 { expAll = 1 wrap = <ul class="sf-menu">|</ul> noBlur = 1 NO = 1 NO.ATagTitle.field = title NO.wrapItemAndSub = <li>|</li> ACT = 1 ACT.wrapItemAndSub = <li class="active"> |</li> } 2 = TMENU 2 { expAll = 1 maxItems = 10 wrap = <div class="sf-mega">|</div> NO = 1 NO { ATagTitle.field = title wrapItemAndSub = <div

Typoscript USER / USER_INT objects in powermail input fields

久未见 提交于 2019-12-25 10:16:07
问题 I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript. But when I add the plugin as userfunction, then it will display strange output in frontend. See my typoscript code below; lib.companyname = USER_INT lib.companyname { userFunc = tx_extbase_core_bootstrap->run extensionName = ExtPowermail pluginName = Extpowermail vendorName = TYPO3 controller = Extpowermail action = list } plugin.tx_powermail

Background image on body tag with TypoScript

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 08:49:44
问题 I would like to assign every Page in TYPO3 Backend a Image. This image should be rendered as background image for my body tag, like. <body style="background-image:url("/fileadmin/user_uploads/image.png")"> I have the version 6.2LTS of TYPO3. In a previous TYPO3 Version (4.5) i realized a smilar solution with this typoscript part page.bodyTagCObject = COA page.bodyTagCObject { 10 = TEXT 10.value = <body style="background-image:url( 20 = TEXT 20 { data = levelmedia: -1 "slide" wrap = uploads

How can I extract metadata properties from images with FAL and fluid?

喜欢而已 提交于 2019-12-25 07:12:48
问题 Situation sysext:filemetadata is activated; images (fal references) are deposited within page resources (pages.media). 2 options are currently known to me in conjunction to TYPO3 pages: Using a custom FAL viewhelper Using TypoScript (which is often illegible and not easy to maintain) Question What's actually (TYPO3 7.x and 8.x) a common/core-only solution to render such images within fluid with additional properties (metadata) like creator, copyright and so on? 回答1: I would go for next

Use cropped image with fallback in TypoScript in TYPO3 8

爷,独闯天下 提交于 2019-12-25 01:45:02
问题 This TS code always produces a 600x400px image: 10 = FILES 10 { required = 1 references { table = tt_content fieldName = image } renderObj = IMAGE renderObj { wrap = <div class="teaser-image">|</div> file.import.data = file:current:originalUid // file:current:uid file.crop.data = file:current:crop file.width=600c file.height=400c } } If I remove file.width=600c file.height=400c then the cropped image from the crop wizard will be used. But I need both (it's an upgrade of an existing site): if

Is it possible to write a specific query in typoscript

旧城冷巷雨未停 提交于 2019-12-24 23:05:25
问题 my question may seem trivial, sorry if it is! I am currently learning typo3 and typoscript. I want to create a template with a dynamic background image. This image is stored in a directory. I would like to get the image name from the table tt_content. However, the way this works confuses me a bit and i don't know if my take on it is the right one. The code looks like this: 20 = CONTENT 20.table = tt_content 20.select{ where = pid = 79 } 20.headerImagePath = COA 20.headerImagePath { 10 = TEXT

Links at the start of content elements

南楼画角 提交于 2019-12-24 17:53:37
问题 TYPO3 adds these links at the start of almost every element: <a id="c1427"></a> where number is, I guess, UID of the element. How TYPO3 render this link and is it possible to disable it for a specific FCE? 回答1: It depends on your TYPO3 Version. In 4.5 it is defined via: tt_content.stdWrap.innerWrap.cObject.default.10.value = <div id="c{field:uid}" If you use the TS-Objectbrowser, you should find it somewhere in tt_content.stdWrap.* Depending on the rendering you are using, you could be able

Typo3 Indexed Search Local_Lang path

牧云@^-^@ 提交于 2019-12-24 11:30:54
问题 i am wondering what TS code is needed to set path to my own indexed search local_lang. I changed what i needed in pi1/local_lang but i would like to set it to my own so i can have the edited (Croatian in this case) for future projects. Something like: plugin.tx_indexedsearch.templateFile = fileadmin/search_temp.html but for Local_lang of it? 回答1: with this lines you can overwrite individual translations: plugin.tx_myPlugin_pi1._LOCAL_LANG.de.key = value; plugin.tx_myPlugin_pi1._LOCAL_LANG.en

How to enable header_position in TYPO3 7.6

这一生的挚爱 提交于 2019-12-24 11:01:13
问题 In versions prior to TYPO3 7.6 you could select a position for your header within your content element (left, middle, right as far as I remember). The field which has been used for storing that information in tt_content header_position is still available. However, it will not appear in the backend. I'm also using fluid_styled_content for rendering my content, and the Header partial doesn't contain any reference to the position, but only to the layout field. My question is: How can I reenable