简体   繁体   中英

wrap extension output with typoscript typo3 is not working

I'm using Typo3 7.6.4 and I want to wrap an extension output with a div.

The extension is csv-table .

How can I do this with Typoscript?

Most plug-ins are defined as a USER or USER_INT objects. These have a property stdWrap See TypoScript Reference - USER(_INT) I couldn't find the extension 'csv-table' for TYPO3 7, but let's assume that it's available in TypoScript as plugin.tx_csvtable_pi1 then you could use something like:

plugin.tx_csvtable_pi1.stdWrap.wrap = <div class="myCsvTable">|</div>

The best way is to use a fluid layout if you use EXT:fluid_styled_content

Resources/Private/Templates/CsvTable.html

<f:layout name="Default" />

<f:section name="Main">
  my output
</f:section>

Resources/Private/Layouts/Default.html

<div class="my-element">
  <f:render section="Main" />
</div>

TypoScript reference: FLUIDTEMPLATE

If you use the old css_styled_content you can use this

tt_content.my_ext = COA
tt_content.my_ext.stdWrap.wrap = <div>|</div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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