Can the view mode outer packaging of entities be deleted?

Created on 9 August 2024, about 2 months ago

Hello,

Can the view mode outer packaging of entities be deleted?

Like This:

<div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item">
...
</div>

Thank you

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @msn5158
  • 🇫🇷France mattlc

    Hello,

    Sorry for answer delay.
    Not sure to understand.

    You want to strip entity wrapper ?

    <article{{ attributes }}>
    ... the content of the node
    </article>
    

    becomes

    ... the content of the node
    

    If you talk about the entity wrapper set in entity template, this module can't as it is only targeted to fields on a "per view mode" basis.
    This may be easy to do in your theme by overriding entity template such as node.html.twig.

    Regards.

Production build 0.71.5 2024