I use rendered entity inside my view header. It is a page. When the view displays, the rendered page title in the header has link around it.

I've tried to prepare my own display mode for page type of content and remove link items from them, moved them to hidden. Nothing helped.

Any suggestions appreciated.


Here's the How:

 {% set headline %}
   {{ label }}
 {% endset %}
 {{ headline|striptags }}

as found here

| improve this answer | |

Did you also create a new .html.twig template file that has the title without the link?

Use that new display mode, just also make sure to create a new template file: node--content-type--display-name.html.twig or whatever you need

could be in page.html.twig

| improve this answer | |
  • I though it could be some rewrite for the field, or other trick. I may also get the page based on title criteria in other subview and add subview inside main view header. But I was wondering if there is simple solution. – cssBlaster21895 Oct 15 '17 at 19:32

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.