typo3-7.6.x

TYPO3 ver. 7.6.2 - Condition ViewHelpers evaluated only once

試著忘記壹切 提交于 2019-12-07 11:13:05
问题 Problem: I wrote a conditional VH (extending AbstractConditionViewHelper ) and it works as usually, anyway I realized that in non-cached version it is evaluated only once. Initialy I thought that's my bug, but checked common <f:if> and the problem is identical :S In general when I visit my page for the first time, condition is evaluated and valid result is given, but when I'll refresh the page VH isn't called anymore (checked by setting breakpoint inside the VH) and VH is always treated as

Fluidtypo3 Flux - save in table field

ε祈祈猫儿з 提交于 2019-12-06 09:34:45
I'm trying to develop a frontend extensions with typo3 - fluidcontent. Is it possible to use the bodytext field of the tt_content table instead of the flexform field? I would like to connect this text element with the tt_content.bodytext field. <flux:field.text name="bodytext" label="Content" /> You can force Flux to save to the record itself, rather than the flexform field, by prefixing your field names with the name of the table that your form applies to . For example, since this implementation is for tt_content , you can name the field tt_content.bodytext and the value will be saved to that

What is the right configuration for the RTE to show my own CSS classes as selection?

元气小坏坏 提交于 2019-12-06 05:49:39
The configuration of the RTE changes with each (big) version. Now I have my first 7.6 installation where I need to configure the RTE so editors can have special classes for paragraphs, spans or tables. e.g. the editor should be able to select the default styles of bootstrap for tables: table-striped, table-bordered I don't use an old configuration from a 6.2 installtion but created it anew from documentation. I use a site extension and include the TSconfig in ext_localconf.php with \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:site

Typo3 ke_search extension Fatal error

自古美人都是妖i 提交于 2019-12-06 04:24:19
I'm pretty new to Typo3, so sorry if I can't understand what's the problem here. I installed the extension ke_search and followed (many times!) the basic and simple instructions given to setup it. The indexer works and everything seems just fine, but when I try to check the front end page, an error occours: PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Fluid\View\StandaloneView::setTemplateRootPaths() must be of the type array, null given, called in (...)/typo3conf/ext/ke_search/pi2/class.tx_kesearch_pi2.php on line 126 and defined in (...)/typo3/sysext/fluid/Classes/View

TYPO3 ver. 7.6.2 - Condition ViewHelpers evaluated only once

送分小仙女□ 提交于 2019-12-05 17:52:13
Problem: I wrote a conditional VH (extending AbstractConditionViewHelper ) and it works as usually, anyway I realized that in non-cached version it is evaluated only once. Initialy I thought that's my bug, but checked common <f:if> and the problem is identical :S In general when I visit my page for the first time, condition is evaluated and valid result is given, but when I'll refresh the page VH isn't called anymore (checked by setting breakpoint inside the VH) and VH is always treated as FALSE. Only any change in view's code will cause that VH will be evaluated once, and again next refresh

How can I get the category object in Fluid of Typo3 Content Element Pictures?

萝らか妹 提交于 2019-12-04 14:26:49
after a long time of Google, I can get the categories of FAL Objects in Typo3 7.6 Fluid. But I can only return a String. I want to get an object like {data}. What I do: TypoScript lib.category = CONTENT lib.category { table=sys_category wrap=| select { pidInList = root,0,1 recursive = 99 max=10 selectFields=sys_category.title,sys_category.uid join = sys_category_record_mm on sys_category_record_mm.uid_local = sys_category.uid join sys_file_metadata on sys_file_metadata.uid = sys_category_record_mm.uid_foreign join sys_file_reference on sys_file_reference.uid_local = sys_file_metadata.file

How to debug a query in extbase?

青春壹個敷衍的年華 提交于 2019-12-03 17:57:37
问题 $query = $this->createQuery(); return $query->matching($query->like('linker', "$linkerKey=$linkerValue")) ->setOrderings(array('crdate' => $ordering)) ->execute(); How can i debug such a generated query in extbase? When creating the same query again (but without the execute() ) and trying to display it with var_dump or the internal t3lib_div::debug i just receive a blank page. 回答1: $query = $this->createQuery(); $result = $query->matching($query->like('linker', "$linkerKey=$linkerValue")) -

dotenv-connector within TYPO3 CMS

给你一囗甜甜゛ 提交于 2019-12-03 13:27:27
问题 I try to use helhum/dotenv-connector in my TYPO3 Project. I have done the following: my composer.json : { "require": { "typo3/cms": "^8.5", "helhum/dotenv-connector": "1.0.0", "helhum/typo3-console": "^4.1" }, "extra": { "helhum/typo3-console": { "install-extension-dummy": false }, "typo3/cms": { "cms-package-dir": "{$vendor-dir}/typo3/cms", "web-dir": "web" }, "helhum/dotenv-connector": { "env-dir": "", "allow-overrides": true, "cache-dir": "var/cache" } } } Then I ran composer install After

dotenv-connector within TYPO3 CMS

夙愿已清 提交于 2019-12-03 03:35:13
I try to use helhum/dotenv-connector in my TYPO3 Project. I have done the following: my composer.json : { "require": { "typo3/cms": "^8.5", "helhum/dotenv-connector": "1.0.0", "helhum/typo3-console": "^4.1" }, "extra": { "helhum/typo3-console": { "install-extension-dummy": false }, "typo3/cms": { "cms-package-dir": "{$vendor-dir}/typo3/cms", "web-dir": "web" }, "helhum/dotenv-connector": { "env-dir": "", "allow-overrides": true, "cache-dir": "var/cache" } } } Then I ran composer install After that I setup the TYPO3 using the command php vendor/bin/typo3cms install:setup This should be similar

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