1

I am using {{ page.content }} to print all my page content. It is printing my all content but I want to remove title from this content and print it separately in different div structure (without using page.content). Currently its taking drupal default structure. Is it possible?

2

as @Hodba Khalaf mentioned in comment Page title is a block go to admin/structure/block a block called Page title added by core enter image description here

But you can render page content without specific field in twig by using without filter for example you can render page content without page title try something like:

    {{ page.content|without('bartik_page_title') }}

Note : in the example above page title block element is bartik_page_title because i use bartik theme so it could be different in your case, dump the page.content to get the key of your title page.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.