将扩展添加到 Fluid Powered TYPO3 模板的首选方法 [英] Preferred way to add an extensions into Fluid Powered TYPO3 template

查看:26
本文介绍了将扩展添加到 Fluid Powered TYPO3 模板的首选方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Claus 的 Fluid Powered TYPO3,对此我很满意.目前我必须实现一个模板,它应该在侧边栏中包含另一个扩展(例如新闻).

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.

我的想法是添加 f:cObject ViewHelper 并以这种方式插入扩展.

My idea was to add the f:cObject ViewHelper and insert the extension in that way.

这是正确的方法吗?

谢谢

马库斯

推荐答案

这取决于您正在构建的模板类型:

This depends on the type of template you are building:

  1. 页面模板应该有适当的内容区域,您可以在其中插入内容.如果需要共享内容,您有几个选择:a) 在 sys 文件夹中创建元素并从 Flux 表单设置中引用它,然后使用 v:content.render 通过 UID 呈现它.b) 将任意数量的共享元素放在 sys 文件夹中,并通过 PID 渲染所有元素.c) 在模板的列中使用内容滑动,所有模板中都有该列,旨在包含滑动"到每个子页面的元素(如果编辑者有权访问,也可以在子页面上进行编辑).
  2. 内容模板可以使用 flux:gridflux:form.columnflux:form.content 作为快捷方式来快速制作单列,添加内容区域,然后 flux:content.render 渲染这些元素.这允许您控制围绕插件呈现的内容.
  3. 插件模板可以关联 Flux 表单并使用第 2 点中描述的步骤.
  1. Page templates should have proper content areas into which you can insert content. If the content needs to be shared, you have a few options: a) create the element in a sys folder and reference it from your Flux form settings then use v:content.render to render it by UID. b) Place any number of shared elements in a sys folder and render all by PID. c) Use content sliding in a column in your template which is there in all templates and is designed to contain elements which "slide" to every subpage (and can also be edited on subpages if editor has access).
  2. Content templates can use flux:grid with flux:form.column, or flux:form.content as a shortcut to quickly make a single column, to add a content area, then flux:content.render to render those elements. This allows you to control that gets rendered around the plugin.
  3. Plugin templates can associate a Flux form and use the steps described in point 2.

在这种情况下,我认为您正在寻找 1a) 或 1c).

I think you're looking for 1a) or 1c) in this case.

这篇关于将扩展添加到 Fluid Powered TYPO3 模板的首选方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆