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.
Comment | File | Size | Author |
---|---|---|---|
#5 | exclude_node_title-ds-1751806-5.patch | 3.2 KB | yannickoo |
#1 | exclude_node_title-ds-1751806-1.patch | 1.81 KB | cwithout |
Comments
Comment #1
cwithout CreditAttribution: cwithout commentedPatch 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.
Comment #2
cwithout CreditAttribution: cwithout commentedChanging status.
Comment #3
loominade CreditAttribution: loominade commented#1; works for me
Comment #4
yannickooWhitespace
Comment #5
yannickooAttached patch hasn't all that whitespaces. This module also contains stuff like:
That is wrong but this is another issue...
Comment #6
gabrielu CreditAttribution: gabrielu commentedI comment out all my code. Why the above is wrong?
Gabriel
Comment #7
yannickooYou must not write the author statement into the
@file
block. The right place for credits is yourREADME.txt
.Comment #8
fizk CreditAttribution: fizk commentedComment #9
nicholas.alipaz CreditAttribution: nicholas.alipaz commented#5 worked perfect for me, please commit as it works perfect on three sites here and a few others in this thread it seems.
Comment #10
fizk CreditAttribution: fizk commentedCommitted. Thanks!
http://drupalcode.org/project/exclude_node_title.git/commit/d5567c65ed16...
http://drupalcode.org/project/exclude_node_title.git/commit/87b372718835...
Comment #11
nicholas.alipaz CreditAttribution: nicholas.alipaz commentedThanks, I added this module to the list of modules offering integration in display suite documentation:
http://drupal.org/node/1078444
Comment #12
nicholas.alipaz CreditAttribution: nicholas.alipaz commentedAdded version info to that documentation to avoid confusion. Best!
Comment #13
fizk CreditAttribution: fizk commentedThanks Nicholas!
Comment #14.0
(not verified) CreditAttribution: commentedChange steps for where to "hide" the page title in the display suite settings. Can only be chosen after a layout is enabled.