简体   繁体   English

如何在Typo3 6.2.X后端中创建自定义“新内容元素”?

[英]How to create custom “New content element” in Typo3 6.2.X back-end?

I'm new to Typo3 and need guidance. 我是Typo3的新手,需要指导。 Is it possible to clone and modify the existing "New Content Element", such that I could add custom input variables to add new records. 是否可以克隆和修改现有的“新内容元素”,以便我可以添加自定义输入变量来添加新记录。 My intention is to have the following fields as input layout: 1. Title 2. Sub-title 3. Picture upload (optional) or URL to picture 4. Description. 我打算将以下字段用作输入布局:1.标题2.副标题3.图片上载(可选)或指向图片的URL 4.描述。

so what could be the best approach to do this (I'm using v 6.2.11)? 那么做这件事的最佳方法是什么(我使用的是6.2.11版)? Looking forward to suggestion and working examples. 期待提出建议和工作实例。 Thank you in advance. 先感谢您。

Here: How to quickly create custom content elements in TYPO3 6.x - you'll find full description. 此处: 如何在TYPO3 6.x中快速创建自定义内容元素 -您将找到完整的描述。 It's popular question/answer here on StackOverflow, so there's no reason to copy it to new answer. 这是StackOverflow上的热门问题/答案,因此没有理由将其复制到新答案。

There is also the FluidTYPO3-framework . 也有FluidTYPO3-framework It is a very flexible way to create new content elements, but not as flexible as the approach described in biesiors answer. 这是创建新内容元素的一种非常灵活的方法,但不像biesiors回答中所描述的那样灵活。

To create new content elements, you would need to install the extensions flux and fluidcontent , and then create a provider extension (providing new content elements) yourself. 要创建新的内容元素,您需要安装扩展fluxfluidcontent ,然后自己创建一个提供程序扩展(提供新的内容元素)。 In that extension, you create one fluid template for each new content element. 在该扩展中,您为每个新的内容元素创建一个流体模板。 It consists of 它包括

  • A form to configure the content element 用于配置内容元素的表单
  • A preview of the element in the backend 后端元素的预览
  • A rendering definition for the frontend 前端的渲染定义
  • Some supporting stuff, eg language labels. 一些支持的东西,例如语言标签。

All this works with the fluid engine, so you have to know how to use it. 所有这些都适用于流体发动机,因此您必须知道如何使用它。

Details on how to configure the provider extension can be found on the project home page . 项目主页上可以找到有关如何配置提供程序扩展的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM