extbase

TYPO3 v7.6 extBase backend module template path not working

无人久伴 提交于 2019-12-12 18:22:46
问题 I have created extBase extension using extension_builder. Everything is fine but backend module path not working. - constants.txt module.my_ext { view { templateRootPath = EXT:my_ext/Resources/Private/Backend/Templates/ partialRootPath = EXT:my_ext/Resources/Private/Backend/Partials/ layoutRootPath = EXT:my_ext/Resources/Private/Backend/Layouts/ } } - setup.txt module.my_ext { view { templateRootPath = {$module.my_ext.view.templateRootPath} partialRootPath = {$module.my_ext.view

TYPO3: Set more than one storage pid for one extension

半世苍凉 提交于 2019-12-12 12:12:36
问题 I builded an extension that has a 'details' table that holds details with a title and a description that be included inline to another object. Right now new details are stored in the same pid as the object, but I'd like to change that. this question was answered by Merec and in the comments he points to a solution (add the column "pid" to your model, this is the first the model looks at) but asked to formulate a separate question for it ... I took his suggestion but could not get it to work,

Configure model to use an existing table in extbase

雨燕双飞 提交于 2019-12-12 05:09:52
问题 I built an extension in Typo3 4.5 using extbase. automatically was new table for a product model created with the name "tx_piproductdetail_domain_model_product",but my hope is to set it to use the already existing table "tx_piproducts_domain_model_product" instead. I tried to modify the TCA file .. but couldn't make it . Here is how the TCA file is configured for that model http://laravel.io/bin/W44z5. 回答1: http://docs.typo3.org/typo3cms/ExtbaseFluidBook/b-ExtbaseReference/Index.html

Typo3 Extbase losing fe_user authentication

给你一囗甜甜゛ 提交于 2019-12-12 02:07:31
问题 I have this little snippet for logging in a user with my own Typo3 extension: $GLOBALS['TSFE']->fe_user->createUserSession(array()); $GLOBALS['TSFE']->fe_user->user = $GLOBALS['TSFE']->fe_user->getRawUserByUid($this->userRepository->findByUsername($winAcc)->toArray()[0]->getUid()); $GLOBALS['TSFE']->fe_user->fetchGroupData(); $GLOBALS['TSFE']->loginUser = 1; In the fluid template I can check if a user is logged in with this: <f:security.ifAuthenticated> This is being shown whenever a FE user

TYPO3 Extbase: Set storagepid for Backend Module

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:42:53
问题 I have written a small extension that provide news for Backend User. Ist is just 2 Parts. One part showing the news for all BE User as a own Module, and the other part are create and edit functions provided by the TCA. To work with the TCA forms and the default extbase getter, i need the correct storagePid. I can't set them via TypoScript, because I'm never in a page context . My Idea was to use the Plugin settings with the file ext_conf_template.txt # cat=persistence/enable; type=int; label

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 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

Pass data in redirect() - Typo3

血红的双手。 提交于 2019-12-11 12:34:28
问题 I have a form after validation if any error occur the page will redirected to the edit itself with an error message.How to pass previous data and an error message through redirect() in typo3 ? $this->redirect($action_name,$controllername, $extensionName, array('data',$data)); Is it right? my action name is 'edit' But it is redirect to 'list' .Please help me to solve this issue. 回答1: The arguments to pass to the redirect-target have to be given as associative array. The key is the argument

in a TYPO3 6.1 fluid template, how to parse values from a select box?

半城伤御伤魂 提交于 2019-12-11 11:38:13
问题 I have built a small extbase extension with the extension builder in TYPO3 6.1. One field is set up as "select". The extension builder set that up in the database as an int(11) field. Values for that field are stored as 0,1 In the Backend, the labels can be configured in the TCA for each value. But is there a simple way to do that for the fluid template as well? I came around an "if" condition, but that can't be it, can it? <f:if condition="{item.typ} == 0"><f:translate key="tx

Create object in extbase extension from a PHP standard class

 ̄綄美尐妖づ 提交于 2019-12-11 09:56:12
问题 I am developìng an Extbase extension. Its structure is: Controller -> MyNameController.php Domain/Model -> MyName.php In MyNameController.php or MyName.php I want to perform a SOAP request like this one: (Example in controller) $WebService="http://webservice_direction/webservice.asmx?wsdl"; $username = "username"; $password = "password"; $parametros = array(); $parametros['username'] = $username; $parametros['password'] = $password; $WS = new SoapClient($WebService, $parametros); $result =