180690
180690

Reputation: 301

TYPO3 7.6.2 fluid_styled_content remove div

I use TYPO3 7.6.2 and fluid_styled_content. With Gridelements my Code look like this:

<div class="col-md-12 col-sm-12">
  <div id="c8">
    <h6>Test</h6>
   </div>
</div>

How can I remove the "div id="? If I use "css_styled_content" there is no problem.

Thanks

Upvotes: 2

Views: 3014

Answers (2)

Daniel
Daniel

Reputation: 1095

The whole rendering is defined inside the fluid templates (as the extension name suggests). So you are able to overwrite the folder containing the layouts / templates and modify them to your needs.

In case of "fluid_styled_content" the configuration is done in TypoScript, so add lib.fluidContent.layoutRootPaths.30 = /path/to/your/layouts, copy the original layouts from EXT:fluid_styled_content/Resources/Private/Layouts/ to your path and modify them to fit your needs.

In your case you have to remove the line:

<div id="c{data.uid}">

in all three layouts.

Further information are available at https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.3/Feature-66111-AddTemplaterootpathsSupportToCobjectFluidtemplate.html

Upvotes: 4

ToTe
ToTe

Reputation: 61

@Daniel Thanks for the hint. Works for me too, but I had to add

lib.fluidContent.templateRootPaths.30 = EXT:extension/Resources/Private/Templates/

to my configuration, because, in my case I want to edit Textmedia.html and thats in Templates folder.

Upvotes: 0

Related Questions