Closed (fixed)
Project:
Display Suite
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2012 at 10:16 UTC
Updated:
1 Jan 2013 at 01:26 UTC
It would be great if the page title could be hidden in views pages as we can do now with entities.
Comments
Comment #1
swentel commentedYou can just set the title to none in the view.
Comment #2
steven.wichers commentedWhich sets the title tag to empty text. Allowing hiding of Views h1 titles gives more flexibility in how that information is displayed on the page.
For example, a View page acting as a homepage that features a carousel marquee. It doesn't make sense to have a h1 tag with the title of the View above this marquee, nor anywhere else on the page. It does make sense to have this within the title.
Basically anywhere you use a View as a page but don't need nor want a h1 tag, but still want that text to appear in title. Or even just repositioning the h1. Currently there is a Views title field you can use, but the default h1 title will still display. What is the point in that?
Comment #3
halefxYour theme shouldn't be printing the title element or wrapper if no title is present.
As an alternative option, though, you could create a block display for the View then add it to the home page without a block title. Use the Empty Page module for the home page ("node" callback").
Comment #4
steven.wichers commentedYou don't understand the use case presented.
I create a View. I want this View to have a <title> as defined in the <head>. I do not want this View to have a title as defined in the <h1>. If I set my View's title to <none> then my <title> is empty.
In order to to have a <title> set but no <h1> displayed you actually have to write custom code in order to not show the <h1> (or use the Page Title module and re-create your View).
This isn't an issue of a theme printing out an empty <h1> tag. It is an issue of a page not having a <title> if no title is set within the View's display. Additionally, positioning comes in to play. If you want to re-position the title to, say, the footer for some odd reason -- you cannot.
But, regardless of all that, this functionality was added to Display Suite in a past commit. This issue was fixed though I do not know which update fixed it. In order to utilize it you must create a manage the View page's layout with DS and make sure the "Views title" option is set to disabled. This will allow the page title to function correctly, while not displaying a content title.
Comment #5
halefxJust out of curiosity, is it fixed for you in 1.x or 2.x?
Comment #6
steven.wichers commented7.x-1.6