typo3

TYPO3 extension; read custom FAL variable in the domain to use in fluid template

こ雲淡風輕ζ 提交于 2019-12-11 15:36:57
问题 In my custom extension I introduced a binary variable to the image metadata that needs to be read, similar to the "Show in list view" of tx_news . With tx_news as example I was able to add the variable, the new palette shows the checkbox in the backend and the selection is registered in a new database field in the sys_file_reference table ... now I need to use this variable in my fluid templates, and here I lose the trail; the objects are items and the new variable is named opentab , I

How to add CKEditor RTE to typo3 Backend Module with the API?

落花浮王杯 提交于 2019-12-11 15:29:33
问题 This question is similar to that one: RTE in own backend module based on Extbase and Fluid but not the same, so i created a new question. I create a comment-extension for typo3 Version 8.7.7 I have added a RTE Editor (CKEditor) to a textarea field in my BackendModule. Therefore i have the following TCA in my comment-model: 'text' => [ 'exclude' => true, 'label' => 'LLL:EXT:rmcomment/Resources/Private/Language/locallang_db.xlf:tx_rmcomment_domain_model_comment.text', 'config' => [ 'type' =>

TYPO3 Preview URL Configuration for all buttons

不问归期 提交于 2019-12-11 15:15:47
问题 I need to add a query string to the preview URL on TYPO3. There are 4 possible ways to view the page from TYPO3 BE Edit the page and choose "Save and view page" from the "Save" button dropdown Right click on page in page tree Click "document with eye" icon "View webpage" button (under Columns/Languages dropdown) Click "eye" icon "View webpage" under default when Languages is selected Using this configuration: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.2/Feature-66370

TYPO3 4.5 extbase test backend module

﹥>﹥吖頭↗ 提交于 2019-12-11 15:09:42
问题 I search for a way to test my extbase-extension. I work with two different templatepaths for front- and backend. module.myext{ view { templateRootPath = myext/Resources/Private/Backend/Templates/ partialRootPath = myext/Resources/Private/Backend/Partials/ layoutRootPath = myext/Resources/Private/Backend/Layouts/ } } The backendmodule works without any problem, but my test will not get the different templatepath. If i write the view.templateRootPath to config.tx_extbase in the ext_typoscript

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

Typo3 extension: Prevent the BE user to save a record if he made an undesired input in a field

爷,独闯天下 提交于 2019-12-11 14:48:00
问题 Basically I try to prevent the BE user to input something wrong. Thatfore i use an external evaluation class (https://docs.typo3.org/typo3cms/TCAReference/8-dev/ColumnsConfig/Type/Input.html). Now my problem is: The function i implemented changes the input and sets the change for the property public function evaluateFieldValue($value, $is_in, &$set) { if(...){ $value = 'Wrong input'; } return $value; } but that's not what i'm aiming for. I want the BE user to get an error message window (like

Test for OpenSSL enabled fails

不羁的心 提交于 2019-12-11 14:29:52
问题 I am testing if openssl is enabled and returns keys. Though openssl is enabled it is not returing keys. When tried to install the TYPO3 the error message is appearing. if (extension_loaded('openssl')) { $testKey = @openssl_pkey_new(); if (is_resource($testKey)) { } else { echo ' Please check the integration of the PHP OpenSSL extension and if it is installed correctly.'; } } Please help to continue installation. Thanks 回答1: Most likely the openssl.cnf file is not correctly configured or

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

Prevent to Cache Login Information

你离开我真会死。 提交于 2019-12-11 13:00:17
问题 I'am using femanager to manage user registration, login and logout. Like many other websites, I'd like to show some user information on the top of the page (using Boostraps mini-navbar ). If the user is logged out, this should look like: If the user is logged in, this information should displayed: As a Typo3 beginner, I implement this with Typo Script and a partial in Fluid Template. The Typo Script reads the current user (user id and e-mail address). userdata = COA_INT userdata { 10 = TEXT

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