typo3

Fluidtypo3 Flux - save in table field

喜夏-厌秋 提交于 2019-12-08 02:48:14
问题 I'm trying to develop a frontend extensions with typo3 - fluidcontent. Is it possible to use the bodytext field of the tt_content table instead of the flexform field? I would like to connect this text element with the tt_content.bodytext field. <flux:field.text name="bodytext" label="Content" /> 回答1: You can force Flux to save to the record itself, rather than the flexform field, by prefixing your field names with the name of the table that your form applies to . For example, since this

How can I use an injected object in the constructor?

隐身守侯 提交于 2019-12-08 00:10:59
问题 I have a service class in my Extbase extension and want to use the ObjectManager to create an instance of an object in the constructor. /** * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface * @inject */ protected $objectManager; public function __construct() { $this->standaloneView = $this->objectManager->get('TYPO3\CMS\Fluid\View\StandaloneView'); $this->standaloneView->setFormat('html'); } Unfortunately this doesn't fails with an error Call to a member function get() on null because

how to include public resources to typo3 extbase extension

你说的曾经没有我的故事 提交于 2019-12-07 18:23:42
问题 I'm building an extension that creates a backend module that enables be_users to resize images. I'm trying to add / include css and javascript files by using the pageRenderer but the files are never included I can only apply css if add it directly in the fluid Template using a style tag and include the javascript file with a script tag. I tried something like this in the controller protected $pageRenderer; .... $this->pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\

MaxGalleryWidth for fluid_styled_content

主宰稳场 提交于 2019-12-07 14:52:26
I tried to change the MaxGalleryWidth in fluid_styled_content for an specific column. First I tried how I do this before fluid_styled_content: lib.contentRight = COA lib.contentRight { 10 = LOAD_REGISTER 10 { maxImageWidth = 205 maxImageWidthInText = 60 } 20 < styles.content.get 20 { select { where = colPos=1 } slide = -1 } 90 = RESTORE_REGISTER } Also using maxGalleryWidth in LOAD_REGISTER has no effect. This doesn't work for me. Than I tried to set the maxGalleryWidth Parameter for the GalleryProcessor, but this seems not to have any effect: lib.contentRight < styles.content.get lib

Extend TYPO3 femanager

雨燕双飞 提交于 2019-12-07 14:28:31
问题 Does anyone have a working example how to extend femanager 3.3.0 on TYPO3 8.7? I created a new Extension which does all the stuff (new database fields for fe_user, TCA, Partials,....). I have the new fields in the femanager plugin and can select them for the frontend. Registering IS WORKING: the new fields are saved in the database. There is a Warning in the Log: Core: Error handler (FE): PHP Warning: Declaration of TOCO3\TocoLedes\Controller\NewController::createAction(TOCO3\TocoLedes\Domain

Add/Create Element to ObjectStorage using Javascript in Extbase/Fluid TYPO3

限于喜欢 提交于 2019-12-07 12:03:17
问题 what is the correct way to dynamically create new Child Elements in a Fluid Form using JavaScript? Problem: 1:n Relation (Parent/Child) using Extbase ObjectStorages: When the Parent Fluid Form is called it should be possible to add several childs (incl. properties of course!) Dirty, partly working, Solution: I added some JS Code and added the required input elements dynamically. The "xxx" will be interated for each Child. The data will be correctly stored in the DB. <input type="text"

TYPO3 lists all tables in DB compare because of COLLATE

ⅰ亾dé卋堺 提交于 2019-12-07 11:36:26
问题 I'm using TYPO3 8.7.4 with PHP 7.0.22 and MariaDB 10.2.7. The DB Compare inside the InstallTool shows me that TYPO3 wants to alter all tables because the current value differs from the expected by the collation of the table: ALTER TABLE `be_groups` CHANGE `title` `title` VARCHAR(50) DEFAULT '' NOT NULL Current value: title VARCHAR(50) DEFAULT '''' NOT NULL COLLATE utf8_general_ci 回答1: MariaDB implemented a change to the Information Schema COLUMNS table which is not backwards compatible with

TYPO3 ver. 7.6.2 - Condition ViewHelpers evaluated only once

試著忘記壹切 提交于 2019-12-07 11:13:05
问题 Problem: I wrote a conditional VH (extending AbstractConditionViewHelper ) and it works as usually, anyway I realized that in non-cached version it is evaluated only once. Initialy I thought that's my bug, but checked common <f:if> and the problem is identical :S In general when I visit my page for the first time, condition is evaluated and valid result is given, but when I'll refresh the page VH isn't called anymore (checked by setting breakpoint inside the VH) and VH is always treated as

Typo3 FCE refer a field inside a container field

 ̄綄美尐妖づ 提交于 2019-12-07 06:28:30
Here is the screen shot of mapping of my FCE: I can refer 'Caption' field by 'field_caption' from the typoscript of 'Link' field. Here is the typoscript for that: 10 = TEXT 10.field = field_caption How to refer the 'Image' field which is inside a container field 'Image and alternate text' From the typoscript of 'Link' field? I tried to refer it directly by using 'field_image', but it is not working. here is the screen shot: Markup I am trying to map is: <a href="resources/img/site/demo1.jpg"> <img src="resources/img/site/demo1.jpg" alt="alternate text" /> <div class="flex-caption"> <p>caption

How to get TYPO3 settings in the utility files?

血红的双手。 提交于 2019-12-06 20:02:36
问题 plugin.tx_xxx { setting { storagePid = 23 } } I want this TYPO3 settings in utility file. Please help me. 回答1: The above method works only in controller or services class try below it will work in any PHP files in Extension. $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\Extbase\\Object\\ObjectManager'); $configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager'); $extbaseFrameworkConfiguration =