typo3-6.2.x

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

若如初见. 提交于 2019-12-09 11:00:53
问题 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

Set Upload Folder when using FAL in TCA

巧了我就是萌 提交于 2019-12-09 06:21:52
问题 Is it possible when using FAL, to set the upload destination folder directly in the TCA column? My configuration looks like this at the moment: 'images_outdoor' => Array ( 'exclude' => 1, 'label' => 'Outdoor: ', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images_outdoor', Array ( 'appearance' => Array ( 'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference' ), 'minitems' => 1, 'maxitems' => 6, ), $GLOBALS['TYPO3_CONF

Connect to database with eID

蓝咒 提交于 2019-12-08 09:30:56
问题 I have a little question: How do I connect an eid script in my extension with the MySQL database? What is the best practise to do so? 回答1: This should be a good point to start: <?php /** * @var $TSFE \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController */ $TSFE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController', $TYPO3_CONF_VARS, 0, 0); \TYPO3\CMS\Frontend\Utility\EidUtility::initLanguage(); // Get FE User Information

TYPO3 CommandController: How to set table field “sorting” of Extbase Object?

五迷三道 提交于 2019-12-08 09:03:32
问题 I can't set the database field "sorting" when adding an Extbase Object to it's Repository. Other database fields are filled correctly, but somehow $this->language->setSorting(8) isn't setting the database field sorting to 8. In my case the value is always 0. My Code looks in my TYPO3 CommandController looks like this: //Inject vars /** * @var \TYPO3\CMS\Extbase\Object\ObjectManager * @inject */ protected $objectManager; /** * @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager *

Update Domain Model except for one property in TYPO3 6.2

巧了我就是萌 提交于 2019-12-08 08:12:19
问题 I maintain a TYPO3 extension that manages frontend users in the backend. Therefore I extend the FrontendUserRepository with my own model. My extension provides CRUD operations and I have a problem with updating the password of existing persons. The idea is to only update the password, if the password field in the edit form is filled, otherwise (if it's left empty) the old password value remains in the database. Now everything was working fine with TYPO3 4.5, but now after I upgraded to 6.2,

The controller “X” is not allowed by this plugin

╄→гoц情女王★ 提交于 2019-12-06 14:09:32
I try to add a new controller which has one action called confirmAgbAction . <?php namespace Eddcapone\MyExtension\Controller; /** * CustomController */ class CustomController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { /** * action list * * @return void */ public function confirmAgbAction() { echo "<p>HALLO WELT</p>"; } } I even added it to ext_localconf.php <?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'Eddcapone.' . $_EXTKEY, 'Myfilelist', array( 'Category' => 'list,show', 'File' => 'show',

How to add Tooltips to a Flexform Plugin Configuration?

天涯浪子 提交于 2019-12-05 11:32:19
I guess its quite Simple as soon as you know it once, but I am searching on this Topic now for 4+ Hours. So maybe someone can help me out, with a push to the right direction. I develop an Extension for TYPO3 6.2 with Extbase. The Plugin Configuration is done with a FlexForm. To increase Usabillity I want to add Tooltips (helptexts or CSH) to my FlexForm. Approach 1: I tryed it with the Tag <cshFile> and adding the corresponding XML to the Extension Files. As many Forums and Blogs suggest, this is deprecated, so I tought lets try the other Approach. Approach 2: Adding the "locallang_csh

Additional page property fields in TYPO3 CMS 6.2

…衆ロ難τιáo~ 提交于 2019-12-04 20:13:37
What would be the recommended method to add custom page property fields in TYPO3 6.2? In 4.5 I used TemplaVoila which had its own page module and made it easy to add data records on a page level. There are several approaches: The "vanilla" approach: Create an extension (and with it the file ext_emconf.php ) and then create a file ext_tables.sql in the extension root. In it you can put SQL-definitions for the new fields, by defining a CREATE TABLE statement for the pages table: CREATE TABLE pages( myNewField int(11) DEFAULT '', ); This SQL-definition will be merged with existing definitions for

get TYPO3 Extbase Repository items in other languages

扶醉桌前 提交于 2019-12-04 04:29:43
问题 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). 回答1: It seems that this is a bug in extbase which will not removed until

Typo3 Extbase Repository->findAll() returns empty

耗尽温柔 提交于 2019-12-04 03:47:27
问题 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