typo3

Frontend Plugin options not displaying for Extension Builder

自闭症网瘾萝莉.ら 提交于 2019-12-22 12:52:38
问题 I created an extension with a frontend plugin using Extension Builder called "Planner". The plugin is listed while editing the page content (Inserting into the page), however, the plugin options are not being displayed. The actions created in the controller are List, Index, Show, Edit, New. The folder structure in conf/ext also seems fine. The table table tx_planner_domain_model_planner has also been created. Where did I go wrong ? 回答1: Take a look at FlexForms (TYPO3 wiki: http://wiki.typo3

TYPO3 TCA forms using AJAX for drop down lists

邮差的信 提交于 2019-12-22 12:43:29
问题 In my TCA forms I have two drop down lists, List 1 called Campus and List 2 called Department . The Department list should change depending on the value selected in the Campus list. In other words, the Department list depends on the selected Campus item. How do I achieve this in TYPO3 TCA forms? Normally in HTML, I would use AJAX, what should I use here? Thanks in advance :) 回答1: You can use markers in your "foreign_table_where"-string. One of them is the ###REC_FIELD_[fieldname]### marker.

TYPO3 extbase - fluid variable to jquery

时间秒杀一切 提交于 2019-12-22 11:24:51
问题 How could one pass a fluid variable from the controller to jQuery or JavaScript? Inside my controller: public function tabs () { $this->view->assign('tab', 1); } Inside fluid I'd use the variable as {tab} But how can I pass to JavaScript? Any help would be appreciated... 回答1: JS in fluid templates behaviour is ... terrible in most cases, if your JS code contains any curly brackets you need to include external script instead placing the script in the view. The reason is that Fluid thinks, that

How to benchmark single TypoSript Object generation?

谁说我不能喝 提交于 2019-12-22 10:59:01
问题 I would like to benchmark single TypoScript object generation to control the performance, is it possible, probably, with some stdWrap methods ? Example of TS objects, which I would like to benchmark : Test 1 page.10 = RECORDS page.10 { tables = pages source = 1 dontCheckPid = 1 conf.pages = TEXT conf.pages.field = title } Test 2 page.20 = CONTENT page.20 { table = tt_content select { pidInList = 0 recursive = 99 where = uid = 1 } } I need each object generation time and quantity of fired

TYPO3 Extbase backend module. Template path issue

牧云@^-^@ 提交于 2019-12-22 10:27:14
问题 I'm experiencing a strange problem with extbase/fluid extension creation. I use TYPO3 6.1 I've made an extension with a backend module on my dev server (same configuration/hardware then the prod). The module works perfectly with the path to the template : myext/Resources/Private/Backend/Templates myext/Resources/Private/Backend/Layouts myext/Resources/Private/Backend/Partials After this, I downloaded my extension's zip in the ext manager and then installer on the prod server. Now I can't use

How I can render Content Object from tt_content i my extension with php in Typo3 6.1.5

别等时光非礼了梦想. 提交于 2019-12-22 09:57:56
问题 I need to render with my extension a specific content from tt_content. How can I do this? \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer ? 回答1: In Extbase extensions $this->cObj is no more available in the current scope, so you need to get it first before you can use: $cObj = $this->configurationManager->getContentObject(); $ttContentConfig = array( 'tables' => 'tt_content', 'source' => 123, 'dontCheckPid' => 1 ); $content .= $cObj->RECORDS($ttContentConfig); 回答2: You can do it from

TYPO3 tutorial extension, controller does not exist

被刻印的时光 ゝ 提交于 2019-12-22 07:10:10
问题 I'm trying to get started with TYPO3 extensions and was following this tutorial to get to see the basics. In the backend everything works fine, but on the front end I get an error: Oops, an error occurred! Code: 20170209104827c3b58d58 - {"exception":"exception 'ReflectionException' with message 'Class Tx_Inventory_Controller_InventoryController does not exist' My files are exactly the same as in the tutorial. I have no idea what is causing this. I assume I made some dumb mistake with

Execute repository functions in scheduler task

本小妞迷上赌 提交于 2019-12-22 05:44:45
问题 Currently I have an scheduler task, but I want to use function from my extbase repository (in the same extension). I keep getting "PHP Fatal error: Call to a member function add() on a non-object", no matter how I try to include my repo or controller from extbase. My SampleTask.php: namespace TYPO3\ExtName\Task; class SampleTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask { public function execute() { $controller = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\ExtName

How can i have different translations for action controller in TYPO3?

故事扮演 提交于 2019-12-22 01:18:46
问题 Is it possible to have a localization based on RealURL's valueMap static table ? For example, in Deutsch language, I have www.example.com/de/account/produktinfos/ de/ is language account/ page produktinfos/ controller action And what I need is to translate the produktinfos/ part to English, i.e., www.example.com/en/account/productinfo/ . Is there a way to translate the controller action in RealURL? 回答1: I don't know if this help for you. You can use some realurl post/pre Procs. for example: /

typo3 extbase: validate a form

我们两清 提交于 2019-12-21 20:39:00
问题 I created a simple "subscribe to newsletter" form: <f:form action="subscribe" method="post" name="newsletterform"> <f:form.textfield id="name" name="name" required="true" /> <f:form.textfield id="email" name="email" required="true"/> <button type="submit">Submit</button> </f:form> as you can see, this is not a form that's based on an existing model, I have no interest in saving newslettersubscriptions to the database (they'll be stored somewhere else anyways). Now in my subscripeAction I want