Closed (duplicate)
Project:
Drupal core
Version:
main
Component:
field system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Dec 2009 at 02:09 UTC
Updated:
9 Mar 2026 at 14:45 UTC
Jump to comment: Most recent
Comments
Comment #1
te-brian commentedThe view modes provided by core are:
Book
Mode: 'print'
Label: 'Print'
Description: ???
Comment Module
Mode: 'full'
Label: 'Full comment'
Description: ???
Node Module
Mode: 'full'
Label: 'Full node'
Description: ???
Mode: 'teaser'
Label: 'Teaser'
Description: ???
Mode: 'rss'
Label: 'RSS'
Description: ???
Mode: 'search_index'
Label: 'Search index'
Description: ???
Mode: 'search_result'
Label: 'Search result'
Description: ???
Taxonomy Module
Mode: 'full'
Label: 'Taxonomy term page'
Description: ???
User Module
Mode: 'full'
Label: 'User Account'
Description: ???
Let me know if I missed any. As we get descriptions I'll edit these and point to the comment that added it.
Comment #2
andypostSubscribe, suppose it slightly depends on #553298: Redesign the 'Manage Display' screen
Comment #3
te-brian commentedThe usefulness certainly does rely on a UI counterpart, but that doesn't mean there shouldn't be any.
Comment #4
andypostView modes already have Label see comment_entity_info()
Comment #5
te-brian commentedWhile I'll admit this is probably no longer a priority for D7, the point of this issue was to add a description in addition to the already existing label. A label is, by definition, short and merely identifies the view mode. A new Drupal user would benefit from a more detailed description of what the view mode is, and where it is used.
For example: 'Search Index' vs. 'Search Result'. Armed with only that information how is a user to know in what cases each mode is used.
If others feel this is unnecessary, 'wont fix' is probably more appropriate than 'fixed'.
Comment #6
andypostI think it's possible to have a some kind of help about view mode, maybe this improve UX
Comment #7
Bojhan commentedI dont really think this adds much value, these descriptions seem only necessary when we have bad labels?
Comment #8
joachim commented> I dont really think this adds much value, these descriptions seem only necessary when we have bad labels?
This has the potential to really help site builders. You can't always convey everything in a label that's only going to be 2-3 words at most.
Site builders could add descriptions such as 'This is used when article nodes are shown in the premium listings pages', or 'This is used for the summary on the user's account page'.
This would also be really good for contrib.
For example, Commerce adds a *lot* of built-in view modes, and it's not always clear where they are used, leaving site builders risking exposing private data when they change what a view mode shows, because they don't know all of the places where it's used.
Eg:
- Product variation, 'Summary'. A description here could say: 'Used for showing the customer their products in the review step of checkout'.
Comment #9
joachim commentedIt's also worth saying that this issue was originally opened in D7. View modes were not as easy to set up as they are now.
In D8 however, they are quick and easy to create, and a very useful tool for theming. That means that sites can easily rack up LARGE numbers of them. My current site, for example, has 61 view modes, 22 of which are for nodes.
Here's a selection of them:
It would be hugely useful to site buiders, themers, and developers if a view mode such as 'featured' could have a description text that explains where it is used in the site, and its general principle. E.g. "This shows a brief preview of the node with teaser text and a small image. It's use on the foo page, the user content page, ..." That would help to understand the consequences of making changes to it. It's very easy to make changes to a view mode because you want to change one particular part of the site, but not realize that that also affects other parts of the site where the view mode is used, which you had no idea existed!
Comment #21
smustgrave commentedAppears to be covered by #3564234: Add display-builder agnostic overview page for display modes which is RTBC!