简体   繁体   English

Typo3:在lib中捕获默认生成的CSS

[英]Typo3: capture default generated css in lib

I need to capture the default generated CSS inside a lib, which will be displayed in an XML page type. 我需要在lib中捕获默认生成的CSS,它将以XML页面类型显示。 For this, I tried: 为此,我尝试:

lib.defaultCss = COA
lib.defaultCss {
  10 < plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE
  wrap = <defaultCss><![CDATA[|]]></defaultCss>
}

page.1 < lib.defaultCss

In the object browser I can see the correct value (default css generated by css_styled_content extension), but on page, I only get the empty <defaultCss> tag. 在对象浏览器中,我可以看到正确的值(由css_styled_content扩展生成的默认CSS),但是在页面上,我仅获得空的<defaultCss>标记。

This is because _CSS_DEFAULT_STYLE is a property, not an object. 这是因为_CSS_DEFAULT_STYLE是属性,而不是对象。

Try this instead: 尝试以下方法:

lib.defaultCss = COA
lib.defaultCss {
  10 = TEXT
  10.value < plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE
  wrap = <defaultCss><![CDATA[|]]></defaultCss>
}

page.1 < lib.defaultCss

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

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