typo3-7.6.x

Typo3 TypoScript and AND Conditions with globalVar

北慕城南 提交于 2019-12-11 06:16:13
问题 I have the following typoscript, I only want it execute when Language is 1 and page ID is 1432 [globalVar = GP:L =1][globalVar = TSFE:id = 1432] lib.atoz = TEXT lib.atoz.value (some test ) [global] However it seems to execute when the first condition is matched not both, it appears to be something to do with globalVar ? Solved [globalVar = GP:L =1] AND [globalVar = TSFE:id = 1432] lib.atoz = TEXT lib.atoz.value (some test ) [global] 来源: https://stackoverflow.com/questions/57426653/typo3

TYPO3 Extbase - Failing to render json via typnum

安稳与你 提交于 2019-12-11 06:16:02
问题 TYPO3 Extbase - Failing to render json via typnum Next to list/edit/new/remove action (which work) I tried to render the output in json. But no values render. If I do a simple ... $data = array('value'=>'001'); return json_encode($data); It does return ... {"value":"001"} What am I missing? Edit: With using and referencing to the same repository its working: JSONController.php <?php namespace Vendor\Lei\Controller; use Vendor\Lei\Domain\Model\Lei; /** * JSONController */ class JSONController

Set sys_language_uid in an extbase command controller

。_饼干妹妹 提交于 2019-12-11 05:07:09
问题 I have a command controller (an importer) run by scheduler, which should persist data as such: foreach ($items as $item){ // store it $entry = $this->objectManager->get('STUBR\Importer\Domain\Model\Item'); $entry->setTitle($item['Title']); $entry->setData(json_encode($item)); // manually set the storage page (defined in scheduler form) $entry->setPid($itemStoragePid); // works // manually set the language (defined in scheduler form) // EDIT // $entry->setSysLanguageUid = -1; // had typo

TYPO3 Backend displaying image too large

岁酱吖の 提交于 2019-12-11 01:44:58
问题 In my TYPO3 7.6.4 when I set up a text & media content element and add a picture it is displayed too large, like its shown in the screenshot Is there a possibility to fix that? and how? 回答1: To make the image procession in TYPO3 work, make sure that you have installed either GraphicsMagick or Imagemagick on your system you put the correct path to the binary in [GFX][im_path] . E.g. /usr/local/bin/ you put gm or im6 into [GFX][im_version_5] depending on what you are using. you set [GFX][image

TYPO3 Extbase - redirect to pid

感情迁移 提交于 2019-12-10 15:57:22
问题 $GLOBALS['TSFE']->pageNotFoundAndExit(''); is currently used, but instead I would like to redirect to a page ID. With the command redirectToUri , I could find no solution, or didn't work. Code: /** * initialize action show * @return void */ public function initializeShowAction() { if ($this->request->hasArgument('xxx')) { if ( $xxx=$this->xxxRepository->findByUid( intval($this->request->getArgument('xxx')) ) ) { $this->request->setArgument('xxx',$xxx); return; } } $GLOBALS['TSFE']-

Typolink inside section menu COA

你。 提交于 2019-12-10 12:18:23
问题 I have a custom section menu where I need a specific part of the menu item to be linked instead of the whole thing. At the moment the typolink part doesn't do anything: tt_content.menu.20.101 < tt_content.menu.20.3 tt_content.menu.20.101 { 1.NO { doNotLinkIt = 1 stdWrap.htmlSpecialChars = 0 stdWrap.cObject = CONTENT stdWrap.cObject { table = tt_content select { pidInList.field = uid } renderObj = COA renderObj { 10 = TEXT 10.field = header 10.typolink { section.cObject = TEXT section.cObject

Typo3 ke_search extension Fatal error

风格不统一 提交于 2019-12-10 11:33:20
问题 I'm pretty new to Typo3, so sorry if I can't understand what's the problem here. I installed the extension ke_search and followed (many times!) the basic and simple instructions given to setup it. The indexer works and everything seems just fine, but when I try to check the front end page, an error occours: PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Fluid\View\StandaloneView::setTemplateRootPaths() must be of the type array, null given, called in (...)/typo3conf/ext/ke_search

Manage hierarchy / enforce priority of TS-templates

拈花ヽ惹草 提交于 2019-12-08 09:48:19
问题 Well, there is actually another guy with exact the same problem. But until today, they didn't come up with a solution, that's why I'm asking it once again. My entire TS is included by an extension in TYPO3 7.6.8 . This works fine except with indexed_search . The TS inside my resources EXT get overwritten by the indexed_search default TS. This is the order of the TS inside the Template-Analyzer: SYS: TYPO3_CONF_VARS:FE:defaultTypoScript EXT:fluid_styled_content/Configuration/TypoScript/... ...

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

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