typo3-6.2.x

How to debug a query in extbase?

青春壹個敷衍的年華 提交于 2019-12-03 17:57:37
问题 $query = $this->createQuery(); return $query->matching($query->like('linker', "$linkerKey=$linkerValue")) ->setOrderings(array('crdate' => $ordering)) ->execute(); How can i debug such a generated query in extbase? When creating the same query again (but without the execute() ) and trying to display it with var_dump or the internal t3lib_div::debug i just receive a blank page. 回答1: $query = $this->createQuery(); $result = $query->matching($query->like('linker', "$linkerKey=$linkerValue")) -

TYPO3 6.2 - how to create FileReference in frontend (FE)?

限于喜欢 提交于 2019-12-03 13:37:32
I have the hypothetical Zoo extension in which I've Animal model with photo field and FrontEnd (FE) plugin with typical CRUD actions. photo field is typical FAL's FileReference and it works perfectly in backend (BE) with common TCA IRRE config. I'm able to successful upload the file to the storage, it's visible in the Filelist module, and I can use it in BE during my Animal editing, anyway I can't create FileReference within my FE plugin. My current approach looks like this: /** * @param \Zoo\Zoo\Domain\Model\Animal $animal */ public function updateAction(\Zoo\Zoo\Domain\Model\Animal $animal)

Use other than primary key as RealURL id_field

不想你离开。 提交于 2019-12-02 09:23:25
In a TYPO3 6.2 site, I have the following postVarSets in realurl_conf.php for an extbase extension: 'postVarSets' => array( '_DEFAULT' => array( 'wba' => array( array( 'GETvar' => 'tx_weiterbildung_pi1[item]' , 'lookUpTable' => array( 'table' => 'tx_weiterbildung_domain_model_item', 'id_field' => 'uid', 'alias_field' => 'kurs_titel', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), ), ), ), This works. As the data in this table is imported from another site, I realized that to avoid confusion, I

How to rename subheader in TYPO3 CMS backend

喜夏-厌秋 提交于 2019-12-02 04:27:13
问题 How can I rename a TYPO3 CMS backend field for authors? i.e. the mentioned field for content-elements of csc_styled_content? 回答1: In general, overriding label names can by done with Page TSconfig in the backend. The following example modifies the label of the subheader field. TCEFORM { tt_content { subheader.label = My new Label-Name } } There are two way to configure that adjustment in TYPO3. Type your configuration changes directly to the page settings » resources » TypoScript Configuration

get TYPO3 Extbase Repository items in other languages

ε祈祈猫儿з 提交于 2019-12-01 21:49:58
How can i get items from an extbase respository in a different language? What i tested: findByUid($childUid) $query->getQuerySettings()->setRespectSysLanguage(FALSE); $query->getQuerySettings()->setSysLanguageUid(3); But the result is always the parent (lang) object. I tried it with "matching" and with "statement" but the result query uses the active language or searches for sys_language_id in (0,-1) = (default/all). It seems that this is a bug in extbase which will not removed until TYPO3 7.1: https://forge.typo3.org/issues/45873 For me this solves the problem: https://forge.typo3.org/issues

Typo3 Extbase Repository->findAll() returns empty

最后都变了- 提交于 2019-12-01 18:31:45
I just can't findAll() make return anything even though I am able to access a specific record by findByUid() . I have taken note (and tried to workaround / set up) of the typoscript solution and the record storage page bug without any success. I am using a dummy extension code made by the extension builder in TYPO3 (current version) for your convenience. I have tested with data manually added through the TYPO3 config ui. Any help would be much appreciated. All the best and thanks in advance Mario biesior For 99.9 % you didn't set your storagePid properly, it has to be the PID of the page where

Uncaught TypeError: jQuery(…).tablesorter is not a function

喜你入骨 提交于 2019-12-01 13:18:24
问题 I have a typo3 plugin hat works fine in typo3 6.2.31 now I migrate to 7.6.23. I have several problems with jQuery libraries. I often got this error: Uncaught TypeError: jQuery(...).tablesorter is not a function Or Uncaught TypeError: $(...).tablesorter is not a function The library is loaded correctly. Is there a way to fix this issue? Thanks. 回答1: Check that there is a loaded tablesorter plugin first before the tyop3 plugin, sounds like ideal sort order would be: jQuery library Tablesorter

TYPO3 6.2 typo3_src should be a link

北城余情 提交于 2019-11-30 07:16:30
问题 I wanna setup a TYPO3 6.2 Installation on MAMP PRO but when I start I get the error: /typo3_src should be a link, but it does not exist Links cannot be fixed by this system So what to do now? Structure is: Application/MAMP/htdocs/typo3/ Any suggestions? 回答1: You have to create symlinks manually, checklist: Open the terminal Move downloaded typo3_src-6.2.4.zip to host's root mv ~/Downloads/typo3_src-6.2.4.zip /Application/MAMP/htdocs/typo3/ Go to destination folder: cd /Application/MAMP/htdocs

How to upgrade TYPO3 4.5 to 6.2

若如初见. 提交于 2019-11-30 06:24:40
问题 What are the recommended steps to upgrade TYPO3 4.5 (or 6.1) to 6.2? I have a mac and my site is running on a shared Linux account. 回答1: Here's a step by step guide from my upgrading practice which I would like to share. Thanks for the guide on https://jweiland.net/typo3/vortraege/typo3camp-berlin-2014.html that has helped me a lot. Note that these are my personal experiences which may or may not apply to your environment. Treat everything carefully. I differentiate between "Quick" and "Long"

Parse an existing JSON string in fluid template?

丶灬走出姿态 提交于 2019-11-29 18:09:46
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:alias> It - of course - complained it had received a string, not an array. Do I have to build a