A view mode is a combination of settings that define how an entity (or node prior to Drupal 7) is shown.

learn more… | top users | synonyms

0
votes
1answer
15 views

How to add a view mode caching dependency in my custom block?

I have a block which renders fields of a node. The output of each field is controlled in the view mode settings of the node entity. Now, how can I add caching which is depended on the view mode ...
0
votes
0answers
10 views

How to show content view mode for related taxonomy term? [duplicate]

I have a taxonomy term with an entity reference field to a product content type. I've configured the CT's teaser view the way I want it, but now I'm stuck on how to use that view mode in my taxonomy ...
2
votes
1answer
26 views

What is the purpose of the “Links” field in the “Manage Display” UI?

In admin/structure/types/manage/my_content_type/display, you can hide/show the fields to display. There is a Links field that you can also hide/show. What is the purpose of this field? Nothing is ...
1
vote
1answer
26 views

Create a route to show a node with a custom display/view mode

In D8, it is easy to add display/view modes; (I don't know which term to use: "display mode" or "view mode"... both seems to be used in the doc) Let say, That I have created the "tech" display mode: ...
0
votes
2answers
22 views

How to display flag(bookmark) in tpl file for different view modes?

There is no field in manage display of content type to display flag link. There is tpl file(node--article--teaser) for teaser mode displaying bookmark But for another mode this having view ...
0
votes
1answer
44 views

How do I add the edit link of a content in a custom view mode?

I have a content type (Sample) which includes a field (A) whose widget type is View. I'm using the Entity Reference View Widget View module for this. The output of this field is having only the ...
3
votes
1answer
42 views

How to render a contact form as rendered entity

I have a question about rendering a contact form as a rendered entity. I have a field in my contenttype where form should be displayed. The field has the type Contact form. In the Manage display ...
0
votes
2answers
45 views

Override theme template from module without implementing a theme

I have a project on D8 where I don't use any custom themes, I use default seven theme for everything because there is no need of any visual theming. So My question: Is it possible to override theme ...
0
votes
0answers
17 views

How to allow view mode selection during content creation?

We have a content type, basic page, that can be of three types Publication Webcast Audio/Video There is a field that based on the Basic Page type, we switch the fields that are displayed. So for ...
1
vote
1answer
17 views

Is there way to create regions for view modes programmatically?

So I have programmatically created a view mode and I need to theme it. The view mode will be rendered via views modules for different content types and The structure requires that I separate fields ...
0
votes
0answers
51 views

Drupal 8 Dynamic View Mode problem

I have installed the project - view_mode_selector My objective is to be able to: Allow the user to create a basic page Allow them to select a view mode for it's sub content items (a drop down list ...
0
votes
1answer
27 views

How do I set the language code for rendering in entity_view()?

I'm trying to render entities using a Search API callback with entity_view(). I want to register entities of type user in the full view mode as if viewed from the Japanese language. Here is my code: ...
0
votes
1answer
84 views

Display set of Views rows with different view modes

I have a Drupal 8 View with a set of rows, which are each rendered as a compact list teaser. Additionally I need to display those rows inside the same view in a another view mode (e.g. "grid teaser" ...
0
votes
1answer
57 views

Allow access for anonymous to custom user view mode

I made a custom view mode with display suite for the user entity. It is called "user_teaser" and shows some fields that may be visible for Anonomous user. Unfortunately currently anonymous users ...
0
votes
1answer
58 views

Custom view mode issues

My goal is to switch between different view modes based on the node path (pattern). In my case, the patterns would be: dossier/node-alias => default template dossier/node-alias/cover => cover ...
0
votes
3answers
339 views

How to change Display modes per node (view modes)?

In Drupal 8 views modes are supported by Core, which makes entity view modes obsolete. I will like to have the ability to change my view mode per node without using Display Suite. Does anyone know if ...
3
votes
2answers
59 views

Hide default value by view mode

I have an image field inside the content type 'Article'. I have two view mode: "teaser" and "full". I have a view page ('Homepage') showing all 'Article' nodes using "teaser" view mode. In the '...
0
votes
1answer
43 views

drupal_render($node_view); is not working

Node page is not loading once I add below code drupal_render($node_view); I was referring https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_view/7 and added below ...
0
votes
1answer
73 views

Adding Quick Tabs Programmatically to a node is not working

I'm writing below code in my node--type.tpl.php, but only empty page is loading when i load the node page.Can you please help in knowing my mistake. What i need to add to display quicktab and its ...
1
vote
0answers
50 views

view-mode-page: How to define the url pattern right?

I'm new here and hope it is the right place for asking my question. My problem is as follows: I need to provide 2 view modes of one and the same content type via url. So I installed and configured ...
1
vote
2answers
124 views

Add a button or link to perform an action on a node with node_view

I can't find any decent documentation on how to add a button or link to perform an action of _create_node function. I understand on how to do it on the node edit screen, but not the display. EDIT: I ...
0
votes
1answer
147 views

Conditional display of paragraphs items

We use Paragraphs quite extensively in our site. We have about 10 bundles available. What we' like to do is alter how the paragraphs are displayed on various pages; Ie, we'd like to remove bundle a ...
0
votes
1answer
28 views

Using comment view modes

I can use the UI to create a new view mode for a comment type in Drupal 8, without problems, but I don't see how to use that view mode. For example, I just want to have a teaser that shows only the ...
2
votes
1answer
303 views

How do I remove the title from a node's custom view mode

In my Drupal 8 website I created a custom view mode through the UI. I use it to output nodes using a view. In the view result I do not want the titles of the nodes to appear. The UI (content type > ...
1
vote
2answers
372 views

How to disable cache for a specific content type?

I use Drupal 8 and I want to disable caching for a specific content type in full view mode. I've found how to disable caching for all view modes, but I want to disable it for only a specific content ...
1
vote
1answer
135 views

View mode tabs no longer visible in Drupal 8

I have added custom display settings on quite a few content types, see image below: The view mode tabs have now all of a sudden disappeared. I tried to uninstall third party modules and rebuilt ...
1
vote
1answer
50 views

Conditionally change the image field style and wrapping it in a div

The Article content type has been classified by taxonomy vocab Topic, where each Article's node has one topic. For some usability and design requirements, I want Articles belongs to a specific topic ...
1
vote
0answers
17 views

Wich template name do I need for the advanged forum teaser view mode?

I have two different view_modes for a adv. forum post: in the node (full) and in a view_block with the teaser display suite view mode. With template advanced-forum-post.tpl.php I can change both ...
2
votes
1answer
77 views

Altering the view mode of rendered entities in a View Context via Ctools Plugin

I don't even know if what I want to do is possible, so bear with me. My set-up: I have a View Context that accepts an author UID argument from the Panel context, and then displays content created by ...
1
vote
1answer
26 views

make view modes for commerce enabled by default when exporting with features

I am trying to make the Drupal Commerce view modes administrator and checkout_pane enabled by default when I export with features. I have strongarm dependency required; but I do not see the view mode ...
0
votes
1answer
28 views

How to make view mode available only to selected bundle?

I have three taxonomy vocabularies which means that I have three bundles of the vocabulary entity type. I have a few view modes for them and one of them has to be available only to one of those ...
0
votes
2answers
56 views

Where can I view different form modes?

I created a simple content type and a form mode for this content type. Where can I view this form mode after creating it? I see no option for form modes when creating a content type. I would have ...
5
votes
2answers
777 views

View mode in Drupal 8

I want to add a view mode for particular entity type programmatically in Drupal 8.I think the documentation on view modes for Drupal 8 has not been provided like it was provided for Drupal 7 hence I ...
0
votes
2answers
59 views

How to disable access to file page (view display mode = full)?

I want to disable access to the view display page of file by url like file/fid. What's the good way for this? I have tried to use the hook_node_view() but it not called for the files.
1
vote
1answer
242 views

Theming a Fieldable Panel Pane — should I define a View Mode?

I added a Link field to Panopoly's Image fieldable panel pane, but I need to theme it so the link is silently wrapped around the image rather than displayed textually underneath. It also needs to be ...
1
vote
0answers
26 views

'Manage display': new fields not draggable

When I try to drag'n'drop a field under 'Manage display' / inside a view mode (e.g. "Teaser") it just doesn't stay above the Hidden fold. First the confirmation message is shown. But as soon as that ...
0
votes
1answer
123 views

Can't manage display for article

I have done something and can no longer edit the manage display pages for the article content type . When I try to visit them I fall out of the usual rich html interface into a page whose code is ...
1
vote
1answer
216 views

How to set body field display programmatically on node type install?

When hook_installing a new custom node type filled with custom fields I call field_create_instance($instance) where I also set the custom fields' display like so: 'display' => array( 'default' =&...
0
votes
1answer
53 views

How to render Entityform submission (entity) without DOCTYPE and HEAD tags?

I need to render entity as a part of page instead of individual page. By this I mean I want to able to render it without DOCTYPE declaration and HEAD tags. Typically this could be done within html....
2
votes
1answer
29 views

Can DS manage “admin tabs” placement for a node?

Is there an existing sub-module or someplace i'm not looking for Display Suite to allow me to arbitrarily place the View, Edit, Revisions, Manage Display, Devel tabs that appear when viewing a Node... ...
0
votes
1answer
110 views

View Mode not showing up under Manage Display

I created a view mode let's call as my_node_view for content type under display type settings, I was expecting it to show along with default and teaser tabs as default|teaser|my_node_view in manage ...
0
votes
1answer
234 views

View modes are stuck on default view

I had my site for quite some time and just started to use the display suite view modes feature for changing the displays per node. I made new view modes and tried to change them for my nodes, but it ...
0
votes
1answer
88 views

Theme based altering of default image-style for the same node-type and view-mode

OK, After some research and since Domain_views module seems to be a little bit buggy (printing always default Domain ID no matter what), I think this is the base question solving my problem the other ...
0
votes
4answers
1k views

How do I get a view to display as themed within a simplenews html email?

I am trying to create a simplenews newsletter, also using Simplenews Scheduler, to weekly send out a newsletter with the content defined by views. I have a content type set up, and the views defined. ...
0
votes
2answers
77 views

Display node in multiple context

I'm using Drupal 7, and this problem have been tormenting me these past few days : let's say I'm using the basic content type Article, with basic view mode : full and teaser. Now I'm creating a ...
0
votes
1answer
106 views

View mode theme name priority

I have a theme set for view mode 'Teaser'. The theme name for this is named like this: node--teaser.tpl.php. So far so good. Then I created content type 'something' and I would like to create a ...
0
votes
1answer
114 views

Getting error rendering same node in different view mode

Unsupported operand types in /node/node.module on line 1419 On my site users have the ability to flag a content type (node) as being featured on the right rail. I then have a view that renders a ...
1
vote
1answer
410 views

How to remove submitted & author information on Entityform submission view?

I'm trying to remove the author/submitted information from an entityform submission view and I don't seem to find the right way to do so. I'm using Display Suite to manage the view of the email that ...
1
vote
1answer
181 views

Programmatically select image style for use with custom file entity view mode

I have created an empty custom view mode for file entities with hook_entity_info_alter(). I would like to programmatically select settings for it, so that they can be deployed without a user having ...
0
votes
1answer
55 views

Trouble enabling view modes for content types

I have a custom view mode and need to enable it for a node type. I need to enable it through my module, and it seemed like hook_entity_info_alter() is the way to go, but it's not working. Am I ...