Entity view (Content) shall not display node title in a block along with the content

Created on 14 November 2023, about 1 year ago
Updated 8 April 2024, 8 months ago

Problem/Motivation

I'm using "Entity view (Content)" to display content from a specific field (an image, in my example) in the sidebar of my page. I want to only display that image and no other content of the node.

Steps to reproduce

  • Add an additional field of the field type "image" to one of your content types
  • Create a node based on this content type; add an image to your node
  • Create a new display mode, e.g. named "image only"
  • Configure the display mode for your content type to only display the image field content (disable all other fields); configure the Label of the Field as "Hidden" and the Format of the field as "Image"
  • Create a block in the sidebar of your page (e.g. in Olivero theme) of the block type Entity view (Content)
  • Disable the option "Display title" and selevt the View Mode as "image only"

The image will be displayed in the block correctly while but the block will also contain the title of the page (see attached). Desired outcome would be to only see the image without the page title

Proposed resolution

Remove the page title from the content display or provide an option to enable/disable the title of the page.

💬 Support request
Status

Closed: works as designed

Version

4.0

Component

CTools Blocks

Created by

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

Comments & Activities

  • Issue created by @forschi
  • 🇭🇺Hungary vikicica22

    I have the very same problem!
    Ctools version: 4.0.4
    Drupal Version: 10.1.6

  • Status changed to Needs review about 1 year ago
  • 🇮🇳India sijumpk

    This is not an issue with CTools Blocks module. What the module do is, display the content in a particular display mode. And if we don't override the node template file for the display mode, it will just take the default template (core/themes/olivero/templates/content/node.html.twig) and render the result. In that template title will be printed inside

    , if its not a full page display.

    If you want to hide the node title coming inside the block, you can use the
    Manage display ( https://www.drupal.org/project/manage_display ) module for that. With the help of this module you can disable a node title just like a node field.

  • Status changed to Closed: works as designed 8 months ago
  • 🇺🇸United States japerry KVUO

    As stated above, this isn't in the block or ctools module. There is a title for the block that can be suppressed, but if its in the content itself, there is nothing we can (or should) do.

Production build 0.71.5 2024