If you use Display Suite Extras 'Page title options' setting or have a theme without the title in the page template, you can use Display Suite to manage where your page titles appear on "Full content" view mode, giving you the ability to place the title in different locations per content type.

In order to provide display of titles on a node by node basis, I've had to create a field with a custom formatter. This module is a quicker way to set up that functionality. However, the Exclude Node Title settings aren't recognized in the Title field when it's handled by Display Suite.

Also, if you use Display Suite to format your teasers or other view modes, and you want to also use Exclude Node Title to control the visibility on a node by node basis, Exclude Node Title cannot work on those view modes.

How to see this:

  • Configure Exclude Node Title to hide the node title for a content type such as Article on "user defined nodes". Select the view modes to use, such as "Full content".
  • Enable Display Suite
  • Enable the Extras module that's packaged with Display Suite
  • At admin/structure/ds/extras, under "Other", check "Page title options".
  • Go to "Manage Display" for any content type, such as admin/structure/types/manage/article/display
  • In the vertical tabs at the bottom of the page, enable the "Full content" view mode.
  • Edit the "Full content" view mode. admin/structure/types/manage/article/display/full
    • In the vertical tabs, under "select a layout", choose any layout.
    • Save the settings.
    • When the page reloads, put the title and other fields into any of the active display areas.
    • Under the vertical tabs, for "page title", select "hide.
  • Edit any Article content. The title shows no matter whether the "Exclude title from display" box is checked.

Patch to follow soon.

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

cwithout’s picture

Patch attached. For testing, follow the instructions above to configure the content type display. Flush cache after installing patch.

Nodes with "Exclude title from display" should have their title hidden for view modes that have "Exclude node title settings" turned on for the DS title field.

cwithout’s picture

Status: Active » Needs review

Changing status.

loominade’s picture

#1; works for me

yannickoo’s picture

Status: Needs review » Needs work
+++ b/exclude_node_title.moduleundefined
@@ -195,6 +195,33 @@ function exclude_node_title_field_attach_delete_bundle($entity_type, $bundle, $i
+      'type' => 'select', ¶

Whitespace

yannickoo’s picture

Status: Needs work » Needs review
FileSize
3.2 KB

Attached patch hasn't all that whitespaces. This module also contains stuff like:

// $Id$
/**
 * @file
 * Exclude Node Title
 *
 * @author Gabriel Ungureanu
 * gabriel.ungreanu@ag-prime.com
 */

That is wrong but this is another issue...

gabrielu’s picture

I comment out all my code. Why the above is wrong?

Gabriel

yannickoo’s picture

You must not write the author statement into the @file block. The right place for credits is your README.txt.

fizk’s picture

Component: Code » Integration with other modules/themes
Assigned: cwithout » Unassigned
nicholas.alipaz’s picture

Status: Needs review » Reviewed & tested by the community

#5 worked perfect for me, please commit as it works perfect on three sites here and a few others in this thread it seems.

fizk’s picture

nicholas.alipaz’s picture

Thanks, I added this module to the list of modules offering integration in display suite documentation:
http://drupal.org/node/1078444

nicholas.alipaz’s picture

Added version info to that documentation to avoid confusion. Best!

fizk’s picture

Thanks Nicholas!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Change steps for where to "hide" the page title in the display suite settings. Can only be chosen after a layout is enabled.

  • Commit d5567c6 on 7.x-1.x, 8.x-1.x:
    #1751806 cristinawithout, yannickoo: Add compatibility with Display...