Display the page title, even if "0" in olivero

Created on 24 July 2023, 11 months ago
Updated 29 March 2024, 3 months ago

Problem/Motivation

If a node is created with title "0" then it doesn't show up in olivero theme. It was fixed in #578400: Display the page title, even if "0" for Drupal 7.

Steps to reproduce

Use olivero theme and create a new node with title as "0". Title is not displayed.

Proposed resolution

I think the problem is with the statement {% if title|render|striptags|trim %} in core/themes/olivero/templates/content/page-title.html.twig which returns '0' if the title is '0' and it's considered as false and the title is not displayed.

Remaining tasks

#21 was fixed in MR.

User interface changes

Before

After

API changes

NA

Data model changes

NA

Release notes snippet

NA

🐛 Bug report
Status

Fixed

Version

10.2

Component
Olivero 

Last updated about 6 hours ago

Created by

🇮🇳India kunal.sachdev

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024