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

1
vote
1answer
26 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
36 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
9 views

How to allow view mode selection during content creation?

We 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 when ...
0
votes
1answer
13 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
38 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
18 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
47 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
35 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
52 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
181 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
44 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
40 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
54 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
37 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
79 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
107 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
212 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 > ...
0
votes
2answers
255 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
114 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
43 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
66 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
27 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
1answer
50 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
545 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
56 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
216 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
23 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
116 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
180 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
52 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 ...
2
votes
1answer
28 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
103 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
210 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
84 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
76 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
100 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
106 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
390 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
167 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
52 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 ...
1
vote
1answer
108 views

Make a custom view mode default

I made a custom view mode in Display Suite and I would like to use it as the default view mode for a given content type. Can anybody enlighten me as to how to do it?
0
votes
1answer
85 views

How to avoid caching of fields in Entity View?

I have a few computed fields on my entity and they have dynamic values. These values cannot be cached because they change often. I've created the necessary field formatter that uses the same approach ...
0
votes
1answer
822 views

Render field collection multiple times on node.tpl.php

I have created a custom view mode for field collections with this code: /** * Implements hook_entity_info_alter(). */ function view_modes_entity_info_alter(&$entity_info) { ...
0
votes
1answer
48 views

How can I use View modes for entity without bundles?

I have an entity that has no bundles(ie. it has itself as a - 1 - bundle) and I need to be able to use View modes for it. My understnading is that the Field UI needs the 'bundle of' entity to exist ...
2
votes
2answers
250 views

Node access based on view mode

I have a content type with multiple fields. Some of the fields are accessible to everyone and there are other fields for which the access is controlled. Example: There is a content type called ...
1
vote
3answers
45 views

Is there a standard way to control which node or entity links appear in which view modes?

My module adds a link to the node view, from within hook_node_view. Is there a "Drupal" way to let the site builder control which view modes should show that link? Right now, I'm using a multiselect ...