How to replace class of typo3 content element.


In frontend many time we need to change class of element and some time we need to replace old class name with new class name

following script will help you for search any element from content and replacing with new element.

Here we have replace class of tt_content element [ table content element of typo3] with new class [ bootstrap class ]


tt_content.table.20.stdWrap.replacement {
  10 {
    search = class="contenttable 
    replace = data-role="table" class="table table-hover
  }
}

This is will you for bootstrap layout of table.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Leave a comment