typo3

composer install fails trying to get own typo3 extension hosted on bitbucket

时间秒杀一切 提交于 2019-12-11 12:46:31
问题 I have a TYPO3 extension hosted on bitbucket. I would like to get this extension with composer. As I understood, there must be a composer.json in my extension root and there must be some entries in my composer.json which i run composer install composer.json of my extension { "name": "vendor/extkey", "type": "typo3-cms-extension", "description": "Extension for bla bla bla", "keywords": [], "homepage": "http://www.vendor.com", "authors": [ { "name": "blah", "email": "dev@vendor.com", "role":

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

TYPO3 tx_news: How to remove “news” prefix from RealURL path

删除回忆录丶 提交于 2019-12-11 12:23:04
问题 I have a problem. Does anybody know how to get rid of the news prefix from url ? it is like this http://www.example.com/**news**/detail/title-of-news/ and I would like to be like this http://www.example.com/detail/title-of-news/ Or replace news word with diffrent "article" for example. 回答1: place single view plugin on separate article page Use fixedPostVars (from RealURL docs) to shorten the url, read this answer to see the sample for tt_news (sorry I haven't now any sample for News + RU, but

Typo3: How to insert data into database in a hook with powermail

╄→尐↘猪︶ㄣ 提交于 2019-12-11 11:54:44
问题 I need to insert data into a column in the database. Which hook should I use? How can I insert the data? I'm very confused over how powermail works with hooks. 回答1: For example, You could use this hook : PM_SubmitBeforeMarkerHook , it contains $sessionData , with submitted data. ext_localconf.php $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['powermail']['PM_SubmitBeforeMarkerHook'][$_EXTKEY] = 'EXT:'.$_EXTKEY.'/Ressources/Private/PHP/Hooks/powermail/class.user_PM_SubmitBeforeMarkerHook.php:&user_PM

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 a subpart menu for a one page template in typo3

徘徊边缘 提交于 2019-12-11 11:26:51
问题 I integrate a one page parallax template in typo 3 in this i want to get a menu like below so i can access specific content on click , in a subpart of page object. <ul class="nav navbar-nav navbar-right"> <li><a href="#header-section">HOME</a></li> <li><a href="#about-section">ABOUT</a></li> <li><a href="#price-section">PRICING</a></li> <li><a href="#contact-section">CONTACT</a></li> <li><a href="#contact-section">Call: +23-689-90 </a></li> </ul> 回答1: Try temp.contentnav = CONTENT temp

Change wrap of TMENU when active menu item has a submenu

主宰稳场 提交于 2019-12-11 11:05:59
问题 I want to change the wrap of a TMENU if the current active menu item has a submenu ( ACTIFSUB ). Below is a excerpt of my typoscript: lib.navigation = HMENU lib.navigation { 1 = TMENU 1 { wrap = <ul class="m-navigation-list">|</ul> # if the current active menu item has a submenu, change the wrap to this: # wrap = <ul class="m-navigation-list m-navigation-list--parent">|</ul> ACTIFSUB = 1 ACTIFSUB { wrapItemAndSub = <li class="m-navigation-item m-navigation-link--parent m-navigation-link-

RouteEnhancer with aspects throws InvalidParameterException

荒凉一梦 提交于 2019-12-11 10:59:10
问题 I used the example verbatim from the Changelog: The only thing I changed was the limitToPages. routeEnhancers: NewsPlugin: type: Extbase limitToPages: [82] extension: News plugin: Pi1 routes: - { routePath: '/{news_title}', _controller: 'News::detail', _arguments: {'news_title': 'news'} } defaultController: 'News::detail' aspects: news_title: type: PersistedAliasMapper tableName: 'tx_news_domain_model_news' routeFieldName: 'path_segment' routeValuePrefix: '/' This throws an exception in 9.5.4

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 =

TYPO3: what are the different kind of caches?

五迷三道 提交于 2019-12-11 09:37:48
问题 In the TYPO3 backend, I can clear different kinds of cache: frontend caches, general caches, system caches... Furthermore, there are also options to clear caches in the install tools. In many cases, especially when I develop an extension, I need to clear the caches to reflect the changes I made. However, I never really know which caches I need to clear, and most of the time, I clear each one until I saw the right output when reloading the page. In other cases, when I upgrade TYPO3 for