typo3

Fluidtypo3 Flux - save in table field

ε祈祈猫儿з 提交于 2019-12-06 09:34:45
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" /> 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 implementation is for tt_content , you can name the field tt_content.bodytext and the value will be saved to that

TYPO3: CKEditor strips data-attributes in <span>-Tags

百般思念 提交于 2019-12-06 09:06:40
问题 I want to use a data-attribute in a span-Tag. The CKEditor removes this attribute. If I add it in a p-Tag it will not removed and this is OK. processing: allowAttributes: [data-count] is added in the YAML-file. I've tried this and other combinations, nothing works. config extraAllowedContent: '*(*)[data-*]' What do I have to do, to keep the data-attribute in a span-Tag? 回答1: I have done this for iframe tag with attribbuts, no allowAttributes used for this: processing: allowTags: - iframe

How can I use an injected object in the constructor?

可紊 提交于 2019-12-06 09:03:19
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 the injected class doesn't seem to be available in the constructor. How can I use an injected class in

TypoScript: {field:uid} replacement not working | Different CSS class per menu item

孤人 提交于 2019-12-06 07:32:20
I have a header menu and try to define different CSS classes for each item. This is what I have: 20 = HMENU 20 { special = directory special.value = 107 1 = TMENU 1 { wrap = <ul class="foo" id="mymenu">|</ul> expAll = 1 NO = 1 NO.allWrap = <li class="first menu_{field:uid}">|</li> || <li class="menu_{field:uid}">|</li> || <li class="last menu_{field:uid}">|</li> } } But in the HTML output I simply get class="first menu_{field:uid}" and nothing is replaced. By the way: The page entries in the menu are links to external pages. EDIT: As our designer complained about the non-speaking class IDs we

.htaccess redirect to language subfolder

有些话、适合烂在心里 提交于 2019-12-06 07:10:39
What I have: there are two languages installed: German and English language-versions are managed with subfolders (www.domain.com/de/ and www.domain.com/en/) machine: Typo3 4.5.4 / RealUrl installed mod_rewrite is enabled an works What I want to do: redirect requests without language subfolder to the German version e.g. domain.com/any/test/folder/ to domain.com/ de /any/test/folder What I tried: RedirectMatch permanent ^/(?!(?:(?:de|en)/))(.*)$ /de/$1 Occuring problems: all requests were directed to domain.com/de/index.php it caused an error 310 (net::ERR_TOO_MANY_REDIRECTS) maybe it fails with

Frontend Plugin options not displaying for Extension Builder

徘徊边缘 提交于 2019-12-06 07:07:28
I created an extension with a frontend plugin using Extension Builder called "Planner". The plugin is listed while editing the page content (Inserting into the page), however, the plugin options are not being displayed. The actions created in the controller are List, Index, Show, Edit, New. The folder structure in conf/ext also seems fine. The table table tx_planner_domain_model_planner has also been created. Where did I go wrong ? Take a look at FlexForms (TYPO3 wiki: http://wiki.typo3.org/Extension_Development,_using_Flexforms ). This makes it possible to provide a form where you can manage

how to include public resources to typo3 extbase extension

邮差的信 提交于 2019-12-06 06:49:16
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\\CMS\\Core\\Page\\PageRenderer'); $this->pageRenderer->addCssFile('/typo3conf/ext/extKey/Resources

What is the right configuration for the RTE to show my own CSS classes as selection?

元气小坏坏 提交于 2019-12-06 05:49:39
The configuration of the RTE changes with each (big) version. Now I have my first 7.6 installation where I need to configure the RTE so editors can have special classes for paragraphs, spans or tables. e.g. the editor should be able to select the default styles of bootstrap for tables: table-striped, table-bordered I don't use an old configuration from a 6.2 installtion but created it anew from documentation. I use a site extension and include the TSconfig in ext_localconf.php with \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:site

Typo3 ke_search extension Fatal error

自古美人都是妖i 提交于 2019-12-06 04:24:19
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/pi2/class.tx_kesearch_pi2.php on line 126 and defined in (...)/typo3/sysext/fluid/Classes/View

How I can render Content Object from tt_content i my extension with php in Typo3 6.1.5

安稳与你 提交于 2019-12-06 03:15:34
I need to render with my extension a specific content from tt_content. How can I do this? \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer ? nbar In Extbase extensions $this->cObj is no more available in the current scope, so you need to get it first before you can use: $cObj = $this->configurationManager->getContentObject(); $ttContentConfig = array( 'tables' => 'tt_content', 'source' => 123, 'dontCheckPid' => 1 ); $content .= $cObj->RECORDS($ttContentConfig); Following script will be use PI base extension. $uid = $this->cObj->data['uid']; if ($this->cObj->data['_LOCALIZED_UID']) {