typo3

The default controller for extension and plugin can not be determined ERROR in TYPO3

人盡茶涼 提交于 2019-11-28 11:01:43
问题 I built an extension and I would like to add plugin options at the time of adding the plugin to the page Extension Name : hotels in Hotel model , <?php class Hotel{ ... get set methods ... } ?> in HotelController.php <?php namespace TYPO3\Hotels\Controller; class HotelController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController{ public function listAction(){ // $this->view->assign('result', array('test' => 'hello, u r in list')); } } ?> in ext_localconf.php \TYPO3\CMS\Extbase\Utility

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 ?

How to quickly create custom content elements in TYPO3 6.x

南笙酒味 提交于 2019-11-28 04:47:16
In TYPO3 6.x, what is an easy way to quickly create custom content elements? A typical example (Maybe for a collection of testimonials): In the backend (with adequate labels): An image An input field A textarea When rendering: Image resized to xy input wrapped in h2 textarea passed through parseFunc and wrapped in more markup Ideally, these would be available in the page module as cType, but at least in the list module. And use fluid templates. My questions: From another CMS I am used to content item templates being applied to the BE and the FE at the same time (you write the template for what

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 supress deprecated warnings?

柔情痞子 提交于 2019-11-28 01:28:29
问题 I tried modifying the php.ini file (error_reporting = E_ALL & ~E_DEPRECATED), but with no result. There's an older TYPO3 project which I would like to examine, and all these warnings are really annoying.. Thanks in advance. 回答1: I'm not sure if this will work on your version of Typo3 but try setting the following options in the typo3conf/localconf.php or via the Install Tool. $TYPO3_CONF_VARS['SYS']['displayErrors'] = '0'; // or '-1' to see other errors $TYPO3_CONF_VARS['SYS'][

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

TYPO3: Hook after creating or editing page

青春壹個敷衍的年華 提交于 2019-11-27 19:52:13
I'm searching for a hook which is called after page creation or changes on pages like " hide page in nav ", " deactivate page " or " move/delete page " Does someone know of one? Thanks! These Hooks are located in t3lib/class.t3lib_tcemain.php The following are just some of those: processDatamap_preProcessFieldArray processDatamap_postProcessFieldArray hook_processDatamap_afterDatabaseOperations processDatamap_afterAllOperations In your case, i think you could use " processDatamap_postProcessFieldArray ". Example how to include it in your ext_localconf.php : $GLOBALS['TYPO3_CONF_VARS']['SC