typo3-extensions

Multiple controllers in an extension

强颜欢笑 提交于 2019-12-24 19:15:24
问题 Is it actually possible to write an extension with multiple controllers that will work automatically on all sites? What i want is an extension that would call controller A when site A is opened, controller B when site B is opened and so on. I saw here https://docs.typo3.org/typo3cms/extensions/news/ that multiple controllers is possible with FlexForms and switchableControllerActions . The thing is, when i add the plugin to the site, i have to specify which controller should work for this site

TYPO3 FAL : add and read a custom field in a fluid template

若如初见. 提交于 2019-12-13 03:54:18
问题 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 ... I first tried to declare it in the domain which did work but I could not use the variable since it was an array of the same files in which I tried to use

Typo3 Error: The ColumnMap for property is missing (m:n)

允我心安 提交于 2019-12-13 03:46:51
问题 I am having the same issue that was posted here: Typo3 Error: The ColumnMap for property is missing ...except I am using a m:n relational table. Unfortunately my error continues: I'm using Typo3 version 8.7.19 and I'm developing an extention. The two tables "mitarbeiter" and "zusatzlich" are connectet with a m:n relation. I try to search for a field in the table "zusatzlich" in the repository of "mitarbeiter". The relation of both is necessary. If I try to execute the following query I get

TYPO3 7.6. change typoscript hierarchy via extension-template

走远了吗. 提交于 2019-12-12 04:15:00
问题 Is there a possibility to change the typoscript template hierarchy via an extension-template? Currently i have defined everything including all typoscript in my extension. This works fine with real_url configuration etc. But everything regarding indexed_search is overwritten by the original extension itself. Is there a possibility to define the loading/parsing order of extensions? Thanks! 回答1: You need to define a dependency to all extensions that should load before your extension. If you do

typo3 flexslider should user original image and not cropped one

旧巷老猫 提交于 2019-12-11 19:28:06
问题 In my typo3 7.6.19 Website I want to user the flexslider plugin. That works fine, my problem is that the image is a cropped one and not the original file I uploaded. How can I change it to use the original picture? Thanks in advance 回答1: The plugin sets up a TypoScript constant plugin.tx_wsflexslider.maxwidth=800px You can modify this value in your TypoScript template (Module Template > Constant Editor > select "PLUGIN.TX_WSFLEXSLIDER" About your other problem that is artifacts in the reduced

TYPO3 Best practice assigning cObject data to view since getContentObject() is depricated

邮差的信 提交于 2019-12-11 17:19:53
问题 I was wondering how this is solved in modern extensions, but could not figure it out. Most of them just magical using e.g. {data.uid} inside their views without any $view->assign('data',...) In my old actions I had used something like this: public function myAction() { $data = $this->configurationManager->getContentObject()->data; $this->view->assign('data', $data); } Since getContentObject() is marked as deprecated in v8, it should be replaced with getContentObjectRenderer() , but the

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

TYPO3 error: Call to undefined method TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageRenderer()

扶醉桌前 提交于 2019-12-11 05:55:53
问题 Getting the error when using the extension ke_serach 2.4.2 in TYPO3 8.7.1. Please refer the below image for reference. getpagerenderError Image 回答1: In TYPO3 8 LTS getPageRenderer() Methods Deprecated. Now, You can use PageRender Methods like below. $pageRender = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); $pageRender->addJsFooterFile($jsFile, 'text/javascript', true, false, '', true); 回答2: The extension ke_search is not compatible with

TYPO3 v8.7 JQuery included?

萝らか妹 提交于 2019-12-11 01:17:36
问题 I updated my TYPO3 version from 6.2.31 to 8.7.19. Now there are some problems with JS/JQuery... I heard somewhere that JQuery is automatically included with the new TYPO3 version. Is that right? thanks in advance 回答1: You need to be a bit more specific on this question: Yes, v8 delivers a jquery version. This is however usually thought to be used in backend modules and large parts of the overall backend rely on this. For frontend, it is often better to ship your own jquery version by for

Manage hierarchy / enforce priority of TS-templates

拈花ヽ惹草 提交于 2019-12-08 09:48:19
问题 Well, there is actually another guy with exact the same problem. But until today, they didn't come up with a solution, that's why I'm asking it once again. My entire TS is included by an extension in TYPO3 7.6.8 . This works fine except with indexed_search . The TS inside my resources EXT get overwritten by the indexed_search default TS. This is the order of the TS inside the Template-Analyzer: SYS: TYPO3_CONF_VARS:FE:defaultTypoScript EXT:fluid_styled_content/Configuration/TypoScript/... ...