简体   繁体   English

编辑标题(标题级别)FLUID支持TYPO3 fluidcontent_core而不是CSS_Styled_Content

[英]Edit headlines (header level) FLUID Powered TYPO3 fluidcontent_core instead of CSS_Styled_Content

How can I edit my Header info fluidcontent_core Extension. 如何编辑标题信息fluidcontent_core扩展。 I use it instead of the 'normal' CSS_Styled_Content with FLUIDPAGES 3.1.2 , FLUX 7.1.2 , FLUIDCONTENT 4.1.2 , FLUIDCONTENT_CORE 4.1.1 and VHS 2.1.4 - the latest versions of FLuidTYPO3 . 我用它代替'正常' CSS_Styled_Content FLUIDPAGES 3.1.2FLUX 7.1.2FLUIDCONTENT 4.1.2FLUIDCONTENT_CORE 4.1.1VHS 2.1.4 -最新版本的FLuidTYPO3

For example, I need an additional <div class="text-center">|</div> for my <h1> Header, like this 例如,我的<h1>标头需要一个附加的<div class="text-center">|</div>

<div class="text-center">
  <h1>{textBla}</h1>
</div>

How can I add additional HTML-Code for h1 - h6 or change the labels 1,2,3,4,5,6 to Text Strings!? 如何为h1-h6添加其他HTML代码或将标签1,2,3,4,5,6更改为文本字符串!

尝试使用自己的标签并包装<h?> | </ h?>

In further projects I use lib.stdheader / tt_content for this case. 在其他项目中,在这种情况下,我使用lib.stdheader / tt_content。 But now it's all about FLUID. 但是现在,一切都与FLUID有关。 I've read the Dok, but I'm still helpless .. Thanks for your help. 我已经阅读了Dok,但是我仍然很无助..谢谢您的帮助。

the templates of content_core are all in the Private dir of the ext. content_core的模板都在ext的Private目录中。 itself. 本身。 If you take a look at them, you will see that the headers are rendered from a comma separated string set in the setup.ts and deflated as an array. 如果看一下它们,就会发现标题是从setup.ts中设置的逗号分隔的字符串中呈现并缩小为数组的。 You can make your ow array or create your own dropdown with whatever data you like. 您可以创建自己的ow数组或使用所需的任何数据创建自己的下拉列表。 It is flux based so almost limitless. 它是基于通量的,因此几乎是无限的。

Thanks for your help, rob-ot! 谢谢您的帮助,rob-ot! I think I've got it. 我想我明白了。

setup.ts

plugin.tx_fluidcontentcore {
  settings {
    header {
      classNames = testheader, blatest       
    }
    container {
      classNames = hello
    }
  }
}

I leave the header level at constants types = 1,2,3,4,5,6 and add new classNames . 我将header level保留为常量types = 1,2,3,4,5,6并添加新的classNames For my case I add also a new container className, so my output is like: 就我而言,我还添加了一个新的容器className,所以我的输出如下:

<div class="hello">
  <h1 class="blatest">
    Header only level 1
  </h1>
</div>

在此处输入图片说明在此处输入图片说明

Thanks! 谢谢!

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

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