extbase

TYPO3 / How to make repository from existing table fe_users?

随声附和 提交于 2019-11-29 07:41:10
I am creating a special BE module with Extbase and Fluid and I need a domain object which would be representing standard FE user. When I create new domain object called e.g. Feuser and save it, the extension builder creates special repository and also wants to create special table tx_myextkey_feuser in database. But this table already exists as fe_users . Is possible to tell typo3 that the repository for Feuser objects already exists (as fe_users table) and that typo3 should use the existing one? How can I do that? I need it because the extension (including this BE module) needs to have every

Typo3 Extbase AJAX without page typenum

你离开我真会死。 提交于 2019-11-28 22:03:41
Is there any way to create AJAX calls in Extbase extension without using of page typeNum? lorenz Edit: Helmut Hummel, a member of the TYPO3 CMS team, measured that using EID with Extbase is slower than using the typeNum approach. But since the typeNum approach is cumbersome to configure, there is a third way developed by him. The extension typoscript_rendering provides a way to call Extbase actions directly without additional configuration. It contains a ViewHelper that generates such links and can be used like this in a Fluid template: {namespace h=Helhum\TyposcriptRendering\ViewHelpers}

Display list of elements grouped by year and by month in TYPO3 Fluid

女生的网名这么多〃 提交于 2019-11-28 14:46:24
I have a model where one field is a date. I want to display elements from that model, grouped by year and by month, like this: == 2013 == === April === * Element 1 * Element 2 === March === * Element 3 ... == 2012 == ... What if the best way to achieve that? Should I build a nested array directly in the Controler? Or is there a way to display the year and month headers only using Fluid template? Or should I write a custom ViewHelper to extract and display the year and month headers? Finally, I solved this problem by using a custom ViewHelper, derived from GroupedBy ViewHelper, inspired from

Parse an existing JSON string in fluid template?

Deadly 提交于 2019-11-28 11:48:35
问题 I have a JSON string with some data I want to render in a template. As Fluid arrays are notated in JSON too, I thought I might just take that JSON string and hand it over to fluid, telling it to treat it just like some other array and use it in the template. Thus gaining a lot of speed and losing overhead (don't have to split the JSON data up to save it in the DB, can template it easily in fluid). It wouldn't work, at least not how I tried it. <f:alias map="{item.jsonData}"> {fieldname} </f

TYPO3: How could I add css and js files via controller initialize action and page renderer?

╄→гoц情女王★ 提交于 2019-11-28 06:24:01
问题 I am using the new page renderer from TYPO3 8 on controller level to add extension specific css and js files via an initializeAction: public function initializeAction() { $extPath = ExtensionManagementUtility::siteRelPath( $this->request->getControllerExtensionKey() ); $extJs = $extPath . 'Resources/Public/Js/ext_booking_manager.min.js'; $extCss = $extPath . 'Resources/Public/Css/ext_booking_manager.css'; /** @var PageRenderer $pageRenderer */ $pageRenderer = $this->objectManager->get

Typo3 Extbase Set and Get values from Session

ぐ巨炮叔叔 提交于 2019-11-28 05:28:42
问题 I am writing an extbase extension on typo3 v6.1 That extension suppose to do a bus ticket booking. Here what my plan is, user will select date and number of seats and submit the form. Here my plan to push the date and rate of the selected seat to session (Basket). And while making payment, I wanted to get that values from session and after payment I need to clear that particular session. So In short, How to Push and retrieve the values to and from the session in extbase. Any suggestions ?

TYPO3 extbase & IRRE: add existing records with 'foreign_selector'

感情迁移 提交于 2019-11-28 02:00:09
问题 I "kickstarted" an extension with the extbase extension builder that contains some 1:1 and 1:n relations. It automatically set the field types to 'inline' and displayed a nice IRRE UI in the backend. But by default, there is no way to select an existing record, just create new ones. I found various explanations on how to achieve this with 'foreign_selector', but all of them very sketchy. The feature itself should be working, see https://forge.typo3.org/issues/43239 Can someone walk me through

TYPO3 / How to make repository from existing table fe_users?

无人久伴 提交于 2019-11-28 01:18:18
问题 I am creating a special BE module with Extbase and Fluid and I need a domain object which would be representing standard FE user. When I create new domain object called e.g. Feuser and save it, the extension builder creates special repository and also wants to create special table tx_myextkey_feuser in database. But this table already exists as fe_users . Is possible to tell typo3 that the repository for Feuser objects already exists (as fe_users table) and that typo3 should use the existing

RealURL: Remove Controller and Action from URL

老子叫甜甜 提交于 2019-11-28 01:10:33
I have an extension with a list and show action. Currently this extension can appear on multiple pages: /page-1/ /page-2/subpage/ I have configured realurl like that: $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array ( 'encodeSpURL_postProc' => array('user_encodeSpURL_postProc'), 'decodeSpURL_preProc' => array('user_decodeSpURL_preProc'), '_DEFAULT' => array ( … 'postVarSets' => array( '_DEFAULT' => array( 'controller' => array( array( 'GETvar' => 'tx_extension_plugin[controller]', 'noMatch' => 'bypass', ), ), 'extension' => array( array( 'GETvar' => 'tx_extension_plugin[action]', ),

How do I bootstrap a plugin on TYPO3 CMS 6.0 with extbase?

感情迁移 提交于 2019-11-27 21:23:16
问题 I'm trying to use an extbase plugin through typoscript on TYPO3 CMS 6.0. I used the following code, that I found repeated all over the web: 10 = USER 10 { userFunc = tx_extbase_core_bootstrap->run pluginName = Sermons extensionName = VmfdsSermons switchableControllerActions { Sermon { 1 = byLatestSeries 2 = list 3 = show } } However, this just gives me the following error: #1289386765: Could not analyse class:Tx_VmfdsSermons_Controller_SermonController maybe not loaded or no autoloader? It