typo3

TYPO3: pass variable to typoscript via cObject?

风格不统一 提交于 2019-12-01 10:38:06
问题 I would like to create a dropdown login form in my menu, like in this example: http://bootsnipp.com/snippets/featured/fancy-navbar-login-sign-in-form I have this cObject that calls typoscript for the navigation: <f:cObject typoscriptObjectPath="menu.navbar" /> I need to get the content of the login form somehow into the menu typoscript. Is it maybe possible to pass a variable (in my case the login form) to typoscript via cObject ? 回答1: f:cObject has a data Attribute, that can take different

TYPO3 Extbase individual code on backend-deletion of an object

让人想犯罪 __ 提交于 2019-12-01 09:07:20
I would like to execute some individual code when one of my Extbase domain objects is deleted from the list view in TYPO3 backend. Thought that it could / would work by overwriting the remove( $o ) method in the according repository like public function remove( $object ) { parent::__remove( $object ); do_something_i_want(); } , but that won't work I guess. Looks like the repository-methods are only called / used by actions of my extension (e.g. if I had some delete-action in a FE- or BE-plugin) but not when the object is just deleted from list view in the backend? I don't use (up to now) any

TYPO3 show content from subpages inlcuding css classes

╄→гoц情女王★ 提交于 2019-12-01 07:36:45
问题 With the following typoscript I get all content from the subpages on one page: lib.allPid = COA lib.allPid { 10 = HMENU 10 { special = directory special.value = 2 1 = TMENU 1 { expAll = 1 NO.doNotShowLink = 1 NO.allStdWrap.field = uid NO.allStdWrap.wrap = |, } 2 < .1 } } lib.allContent = CONTENT lib.allContent { table = tt_content select { pidInList.cObject < lib.allPid leftjoin = pages ON (tt_content.pid = pages.uid) where = tt_content.colPos = 0 orderBy = pages.sorting ASC } } But its not

TYPO3 TCA execute hook after object save in backend

旧街凉风 提交于 2019-12-01 07:12:02
问题 I want to manipulate some values and execute a custom function if an object is saved trought the backend. I found trought my google search that I have to specify this in my ext_localconfphp : $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['extkey'] = 'Vendor\\Extension\\Hook\\TCEmainHook'; $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['extkey'] = 'Vendor\\Extension\\Hook\\TCEmainHook';

TYPO3 Extbase individual code on backend-deletion of an object

天涯浪子 提交于 2019-12-01 06:23:44
问题 I would like to execute some individual code when one of my Extbase domain objects is deleted from the list view in TYPO3 backend. Thought that it could / would work by overwriting the remove( $o ) method in the according repository like public function remove( $object ) { parent::__remove( $object ); do_something_i_want(); } , but that won't work I guess. Looks like the repository-methods are only called / used by actions of my extension (e.g. if I had some delete-action in a FE- or BE

Get tt_content uid

怎甘沉沦 提交于 2019-12-01 05:56:49
I am developing an extension that allows admins to save stuff to the database. And I want that each instance of the extension should have it's own Id in the database. Is there some way to get the tt_content uid (which I guess is the extension instance Id) in the extension php. You fetch all tt_content's data in array: $this->cObj->data ie: $uidOfCE = $this->cObj->data['uid']; If you're using Extbase of course you need to get the content object first, ie: $this->contentObj = $this->configurationManager->getContentObject(); debug($this->contentObj->data, "current tt_content's data"); Bharat

How to set breadcrumb for tx_news TYPO3

≯℡__Kan透↙ 提交于 2019-12-01 01:59:10
I have a TYPO3 site. I need to set a breadcrumb. For news I need to show the news title inplace of 'News Detail' (Page title of news plugin). How to implement that? My code is <v:page.breadCrumb class="breadcrumb" levels="1" showCurrent="1" divider=">" showCurrent="1" entryLevel="1"/> or any other method for getting the title like <ol class="breadcrumb"> <li><a href="/">Home</a></li> <li><a href="/news">News</a></li> <li class="active"> ???????? </li> </ol> Sorry but that is not possible out of the box. The news record is not a real page and therefore must be added a bit different. Instead of

Typo3: adds anchor but don't know why

Deadly 提交于 2019-12-01 00:51:38
I have a page content element on a page. This has the ID 3 and it has a translation. This element is read out with the following Typoscript lib.marker = RECORDS lib.marker { tables=tt_content source= 3 dontCheckPid = 1 languageField = sys_language_uid select.languageField = sys_language_uid } For the default language everything is OK. But for my additional language I get <a id="c605"></a> before the div I originally wanted is displayed. I looked in the HTML of the page content and there is everything like it should be. Any ideas? Edit: Here the content gathered through the TS Object Browser:

How to render a Fuid view template without Extbase? I. e an email template by eID

谁说胖子不能爱 提交于 2019-12-01 00:36:18
I want to send an email by a TYPO3 eID script using a Fluid template file to render the mail body. I could not find a simple way how to initialize a Fuid View outside of the normal MVC Extbase context. All sources I found seemed to be outdated and very complex. So what is needed to render a fluid template? Here is a simple function I wrote to render my templates. /** * Renders the fluid email template * @param string $template * @param array $assign * @return string */ public function renderFluidTemplate($template, Array $assign = array()) { $templatePath = \TYPO3\CMS\Core\Utility

How to set breadcrumb for tx_news TYPO3

℡╲_俬逩灬. 提交于 2019-11-30 20:21:44
问题 I have a TYPO3 site. I need to set a breadcrumb. For news I need to show the news title inplace of 'News Detail' (Page title of news plugin). How to implement that? My code is <v:page.breadCrumb class="breadcrumb" levels="1" showCurrent="1" divider=">" showCurrent="1" entryLevel="1"/> or any other method for getting the title like <ol class="breadcrumb"> <li><a href="/">Home</a></li> <li><a href="/news">News</a></li> <li class="active"> ???????? </li> </ol> 回答1: Sorry but that is not possible