typo3

Preferred way to add an extensions into Fluid Powered TYPO3 template

若如初见. 提交于 2019-12-23 05:42:31
问题 im working with Claus' Fluid Powered TYPO3 and I'm quiet happy with it. At the moment I have to implement a template wich should contain another extension (e.g. news) in the sidebar. What is the preferred way to implement this. My idea was to add the f:cObject ViewHelper and insert the extension in that way. Is this the correct approach? Thx Markus 回答1: This depends on the type of template you are building: Page templates should have proper content areas into which you can insert content. If

TYPO3 Extbase bidirectional 1:n relation

杀马特。学长 韩版系。学妹 提交于 2019-12-23 05:17:59
问题 Let's say we have a 1:n relation between an Author and Book model. Modeling the relation using the Extension Builder, the necessary code to get Book 's for an author is provided. But what about the inverse ? How do I get the Author for a given Book class? 回答1: I assume you have created the following domain model with the Extension Builder. When you create a 1:n relation between Author and Book, the resulting database table for Book will contain a field which holds the UID of the author. To

TYPO3: How to configure plugin preview in Backend

心已入冬 提交于 2019-12-23 04:38:33
问题 In the backend I want to display some configurations of the plugin the editor has selected. Like in powermail or news plugin. How can this be achieved? 回答1: You'd apply the same logic as for a custom preview of any custom element: You can use PageTS to register a custom Fluid template: // Register preview for a custom content element mod.web_layout.tt_content.preview.my_content_element = EXT:my_ext/Resources/Private/Templates/Preview/MyContentElement.html // Register preview for a plugin mod

RTE - wrap link based on condition

我是研究僧i 提交于 2019-12-23 04:22:08
问题 My TYPO3 website uses TYPO3 6.1 with the included RTE. What I want to archive is to wrap links with a DIV when a condition (link has class) it met. The editor should only do the following: Create a new text in the RTE (e.g. "My link") Create a new link for the new Text in the RTE Select a class for the link (e.g. "myClass") This results in the following HTML: <a href="#" class="myClass" title="sometitle">My Link</a> In the website frontend, I want the user created link to be wrapped with a

MaxGalleryWidth for fluid_styled_content

自古美人都是妖i 提交于 2019-12-23 03:47:13
问题 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

TYPO3 blog posts in one page

好久不见. 提交于 2019-12-23 03:20:51
问题 I am quite new to TYPO3 and i am trying to build something which i am not sure how to do! I have installed the T3G/blog extension. On my website i have a "Blog" page, where i would like to show the blog posts like this (for each post): Post Title Post Date Full Post Content Post Author I imagine i have to use a for loop to go through the blog posts available, but i can't find a way to make it work. Right now i have something like this: <div class="blog__content__left"> <f:debug>{_all}</f

How do I write a routing aspect mapper for TYPO3 9 LTS

耗尽温柔 提交于 2019-12-23 03:09:15
问题 I need a custom aspect mapper class, to define the value of an optional get parameter. this parameter holds an cf_cache identifier with extra data. But this parameter produces a cHash parameter what i dont need, and dont want to see in the URL's. The docs (https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.5/Feature-86365-RoutingEnhancersAndAspects.html) says: If the requirements are too loose, a URL signature parameter ("cHash") is added to the end of the URL which cannot be removed

Database connect not successful TYPO3

你。 提交于 2019-12-23 02:25:58
问题 I am working for the first time on one hosting with TYPO3, and seems that I can't connect to database during initial setup (first install). My username and passwords are correct , and I can access to database using other methods but i simply can't with TYPO3 install tool. I tried with default hosts (e.g. localhost and default 127.0.0.1) and even socket based connection but nothing. Any help please? Best regrads 回答1: I had a similar problem on my local development machine. The solution for me

TYPO3: Remove validation from ObjectStorage property in model

早过忘川 提交于 2019-12-22 14:57:10
问题 Does anyone knows if it is possible to remove recursive validation from model in extbase TYPO3? Let's say I have model with following properties: /** * @var string * @validate NotEmpty */ protected $title; /** * @var string * @validate NotEmpty */ protected $city; /** * @lazy * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<my/model/classname> */ protected $categories; When passing my object to controller action I want only title and city to be validated. I would like categories not to be

TYPO3: Remove validation from ObjectStorage property in model

陌路散爱 提交于 2019-12-22 14:57:08
问题 Does anyone knows if it is possible to remove recursive validation from model in extbase TYPO3? Let's say I have model with following properties: /** * @var string * @validate NotEmpty */ protected $title; /** * @var string * @validate NotEmpty */ protected $city; /** * @lazy * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<my/model/classname> */ protected $categories; When passing my object to controller action I want only title and city to be validated. I would like categories not to be