typo3-7.x

How to wrap image with div in typo3?

倖福魔咒の 提交于 2019-12-13 02:37:35
问题 To remove default wrap around image, i have used this template code: tt_content.image.20.rendering.noWraps { imageRowStdWrap.dataWrap = | noRowsStdWrap.wrap = | oneImageStdWrap.dataWrap = | imgTagStdWrap.wrap = | editIconsStdWrap.wrap = | caption.wrap = | } # Set this as active rendering method tt_content.image.20.renderMethod = noWraps I want to override it above codes for a specific section. Here is my code to do so: SCREENSHOTS<styles.content.get SCREENSHOTS.select.where = colPos = 9

Pass content from TypoScript to fluid template in TYPO3 7.6

≡放荡痞女 提交于 2019-12-12 20:18:50
问题 I would like to read content via TypoScript and render it through a custom Fluid template. Without css_styled_content or fluid_styled_content. temp.test = CONTENT temp.test { table = tt_content select.languageField = 1 select.selectFields = bodytext,image,header,header_link select.where = colPos = 1 renderObj = FLUIDTEMPLATE renderObj { file = path/to/Teaser.html } } This works with strings, say <f:debug>{data.header}</f:debug> But not with <f:debug>{data.image}</f:debug> returning only the

TYPO3 v7.6 extBase backend module template path not working

无人久伴 提交于 2019-12-12 18:22:46
问题 I have created extBase extension using extension_builder. Everything is fine but backend module path not working. - constants.txt module.my_ext { view { templateRootPath = EXT:my_ext/Resources/Private/Backend/Templates/ partialRootPath = EXT:my_ext/Resources/Private/Backend/Partials/ layoutRootPath = EXT:my_ext/Resources/Private/Backend/Layouts/ } } - setup.txt module.my_ext { view { templateRootPath = {$module.my_ext.view.templateRootPath} partialRootPath = {$module.my_ext.view

Combining TypoScript and Fluid: Iterations?

扶醉桌前 提交于 2019-12-11 12:47:22
问题 I'm combining a TypoScript CONTENT Object with a fluid template. In the page template: <f:cObject typoscriptObjectPath="lib.myItem" /> In TS: lib.myItem = CONTENT lib.myItem { table = tt_content select.where = colPos = 0 select.languageField = sys_language_uid renderObj = FLUIDTEMPLATE renderObj { file = {$customContentTemplatePath}/Myfile.html layoutRootPath = {$customContentLayoutPath} partialRootPath = {$customContentPartialPath} dataProcessing { 10 = TYPO3\CMS\Frontend\DataProcessing

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

How to remove div around an image in typo3?

巧了我就是萌 提交于 2019-12-10 11:47:49
问题 I added an image in typo3. It showed up with extra div in page. <div class="csc-textpic csc-textpic-center csc-textpic-above"> <div class="csc-textpic-imagewrap" data-csc-images="1" data-csc-cols="2"> <div class="csc-textpic-center-outer"> <div class="csc-textpic-center-inner"> <figure class="csc-textpic-image csc-textpic-last"> <img src="fileadmin/user_upload/aetuts.jpg" width="200" height="50" alt=""></figure> </div> </div> </div> </div> I want something like this <img src="fileadmin/user

“Oops, an error occurred! Code: 201601301501048..” in TYPO3 7.6

我只是一个虾纸丫 提交于 2019-12-04 21:44:02
问题 I installed the Typo3 version 7.6 and After adding extension to my page i got the error "Oops, an error occurred! Code: 201512031647523f4d731f". I am not getting meaning of this error and i also enable 'displayErrors' => 1, in local configuration but still not get meaningful error. 回答1: You need to switch off the "Content Object Exception Handler", which is an exception handler in new versions. If a content element/plugin throws an exception, it does no longer take down the whole site, but

How to add custom wizards in typo3 7 TCA?

拜拜、爱过 提交于 2019-12-04 09:05:52
When I try to add the wizard named wizard_geo_selector in TCA ,there arised an error "module not registered".Please tell me how to register the wizard properly in the TCA.? In TYPO3 Version 7.6 new wizards are added like this: Inside your extension create the directory Configuration/Backend/ In the new directory create a file Routes.php , it will be found automatically, no mentioning in ext_localconf.php or ext_tables.php is required. If you still need Ajax you can add the file AjaxRoutes.php in the same folder. Content for Routes.php : return array( 'my_wizard_element' => array( 'path' => '

“Oops, an error occurred! Code: 201601301501048..” in TYPO3 7.6

ぐ巨炮叔叔 提交于 2019-12-03 13:58:30
I installed the Typo3 version 7.6 and After adding extension to my page i got the error "Oops, an error occurred! Code: 201512031647523f4d731f". I am not getting meaning of this error and i also enable 'displayErrors' => 1, in local configuration but still not get meaningful error. You need to switch off the "Content Object Exception Handler", which is an exception handler in new versions. If a content element/plugin throws an exception, it does no longer take down the whole site, but only itself. To disable it, set config.contentObjectExceptionHandler = 0 Reference Don't forget to re-enable

With fluid_styled_content, how to create custom content elements in TYPO3 7.5 and 7 LTS?

99封情书 提交于 2019-12-03 09:25:42
问题 I have been told it is a breeze to set up custom, structured content elements for the Backend in TYPO3 7.5, using the new fluid_styled_content system extension. After looking at at sysext/fluid_styled_content and sysext/backend , I couldn't figure it out myself. Any hints? 回答1: Information source: fluid_styled_slider on Github These information are also available here: usetypo3 blog The official docs are online as well. PageTSconfig To make our content element appear in the wizard for new