如何更改 TYPO3 中的标题布局(添加一些环绕 div) [英] How can I change the Header Layout in TYPO3 (add some wrap div's)

查看:18
本文介绍了如何更改 TYPO3 中的标题布局(添加一些环绕 div)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要更改 TYPO3 中的页眉布局(下图).我正在使用流体模板系统

Hello I need to change the Header Layout (Image below) in TYPO3. I am using the fluid templating system

我还找到了可以更改的 html 文件.文件的原始路径是:/typo3_src-7.6.16/typo3/sysext/fluid_styled_content/Resources/Private/Partials/Header

Also I found the html file where I can change it. The original path to the file is: /typo3_src-7.6.16/typo3/sysext/fluid_styled_content/Resources/Private/Partials/Header

但是如果我在那里更改它,我的 TYPO3 将无法更新.我可以以某种方式更改 TYPO3 仍可更新的文件吗?

But if I change it right there my TYPO3 is not updatable. Can I change the file somehow that TYPO3 is still updatable?

推荐答案

typ3 可能会保持更新.您必须在文件结构中创建原始路径:

it's possbile that typo3 stays updatable. You have to create the original path in your file-structure:

/httpdocs/fileadmin/Templates/fluid_styled_content/Resources/Private/Partials/Header

您可以简单地复制 Header.html 并将其粘贴到那里.在 Header.html 中,您可以编辑 switch-case 并创建新的布局.

You can simply copy the Header.html and paste it in there. In the Header.html you can edit the switch-case an create new Layouts.

然后你必须在后端编辑你的模板.您可以通过单击模板"然后编辑整个模板记录"来执行此操作.在设置"中包含以下代码段:

Then yo have to edit your template in the backend. You can do this by clicking on "Template" and then "Edit the whole template record". Include the following snippet in "Setup":

lib.fluidContent.partialRootPaths.100 = fileadmin/Templates/fluid_styled_content/Resources/Private/Partials/

创建路径后,您必须在后端编辑页面属性.在资源">页面 TSConfig"下,您可以为后端创建标签,例如:

After you created the path you have to edit the page properties in the backend. Under "Resources" > "Page TSConfig" you can create your label for the backend, e.g.:

TCEFORM.tt_content.header_layout {
      addItems.6 = Slider-Title
}

这篇关于如何更改 TYPO3 中的标题布局(添加一些环绕 div)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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