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

Get FlexForm configuration in TypoScript

别来无恙 提交于 2019-12-11 06:07:30
问题 I need to get the page.headerData in typoscript from pi_flexform.How can implement my requirement? page = PAGE page { headerData { 10 = TEXT 10.value =<script>/**********************/</script> } } 回答1: I am not so sure about what you really need. I am guessing you want to access a FlexForm configuration inside your TypoScript? Since the version 8.4 this is possible by using plain TypoScript lib.flexformContent = CONTENT lib.flexformContent { table = tt_content select { pidInList = this }

TYPO3 error: Call to undefined method TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageRenderer()

扶醉桌前 提交于 2019-12-11 05:55:53
问题 Getting the error when using the extension ke_serach 2.4.2 in TYPO3 8.7.1. Please refer the below image for reference. getpagerenderError Image 回答1: In TYPO3 8 LTS getPageRenderer() Methods Deprecated. Now, You can use PageRender Methods like below. $pageRender = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); $pageRender->addJsFooterFile($jsFile, 'text/javascript', true, false, '', true); 回答2: The extension ke_search is not compatible with

TYPO3 menu: how to set “entryLevel” dynamic?

陌路散爱 提交于 2019-12-11 05:42:16
问题 I'm trying to create a menu that displays in TYPO3 all subpages and the parent page. My problem is that I find no way to assign entryLevel dynamically. I'm working with TYPO3 6.1 This is currently my typoscript for the menu. lib.mainnavi = HMENU lib.mainnavi { entryLevel = 1 1 = TMENU 1.wrap = <ul> | </ul> 1 { noBlur = 1 NO { subst_elementUid = 1 allWrap = <li id="link{elementUid}" class="first">| |*| <li id="link{elementUid}">| |*| <li id="link{elementUid}" class="last">| wrapItemAndSub = |<

Typo3 missing all the styles(css/js) after upgraded from 6.2.X to the 7.6.10

不羁岁月 提交于 2019-12-11 05:27:00
问题 I just upgraded the Typo3 from 6.2.26 to 7.6.10, but the styles at the front page are all missing. Just the content and data from the DB shown on it. I guess maybe it was the loss of. So, if there somebody met this question too, share your ideas with me. Looking for your advice, many thanks. 回答1: First you should check if your JS/CSS files are present in the source code of your page. If they are, there are two possibilities, imo: your html is cached but the cache files were deleted/moved.

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 news system and RealURL

别说谁变了你拦得住时间么 提交于 2019-12-11 04:53:27
问题 I have a little problem with the TYPO3 extension News System and Real URL. Its not showing the urls like http://codem.dk/blog/artikel/usunde_energidrikke but showing it like http://codem.dk/blog/artikel/?tx_news_pi1[news]=5&cHash=5370a02c0dc7e653fede425de7ac9187 I have added the plugin code in my realurl file, so i don't know what's wrong, and all other links which are not linking to a news are working fine. In the Extension Manager for Real Url I have this path to the configuration file:

Typo3 CKEditor image from FAL

半世苍凉 提交于 2019-12-11 04:19:55
问题 I set up a fresh TYPO3 8.7.4 installation with CKEditor and rte_ckeditor_image to get images from FAL. In the documentation from rte_ckeditor_image it says: The maximum dimensions relate to the configuration for magic images which have to be set in Page TSConfig: # Page TSConfig RTE.default.buttons.image.options.magic { maxWidth = 1020 # Default: 300 maxHeight = 800 # Default: 1000 } I did this, but still I can't make the width of an image bigger than 300px. I looked at the source code from

Parameters to action lost when validation error occurs

自闭症网瘾萝莉.ら 提交于 2019-12-11 03:54:49
问题 I have two actions, newAction and createAction . Both get the same parameters, which are plain values, not objects. Their implementations looks similar to this: /** * Renders a form with the createAction as action="". * * @param string $value1 * @param boolean $value2 * * @ignorevalidation $value1 * @ignorevalidation $value2 */ public function newAction($value1 = NULL, $value2 = NULL) { $this->view->assignMultiple([ 'value1' => $value1, 'value2' => $value2, ]); } /** * @param string $value1 *

Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

瘦欲@ 提交于 2019-12-11 03:38:32
问题 I've made a TYPO3-Installation 6.2.9 with Fluid powered TYPO3 - the first steps with the Pre-configured Distribution "Site" were fine. My Site/Page-Template is installed and I added all the TypoScript stuff. Now I want to use FLUIDCONTENT (FCE) with FLUX. I've added a new Template-File TeaserOne.html and I try to use the Layout from the Distribution Content.html . Now I can see and write into my input-fields in Backend, but I've no Output in Frontend?! What else do I need? I only see the