<img alt="" src="https://secure.agile365enterprise.com/790157.png" style="display:none;">

Easing Content Presentation Pains with Drupal's Field View Mode

author
By Vaibhav Jain Feb 13, 2020
Easing Content Presentation Pains with Drupal's Field View Mode
Easing Content Presentation Pains with Drupal's Field View Mode

One of the most conventional challenges that marketers face when publishing changes and content on website is dependence on tech team. The challenge however expands to all the departments where non developers aim to be brand complaint. 

With its low code interface, Field view mode aims to empower these non IT team members to create and showcase their content faster and easily with different view types (you don't have wait for them now, after all).

In this blog, let's understand how the field view mode module operates and how non IT teams can use it under different situations.

What is Field View Mode module? 

The Field View Mode (let's call it FVM) is a markup module which controls an entity’s appearance on a website. It lets you view a specific content (of a content type) in different ways. By setting up various view modes, it enables content editors and site administrators to choose the view of the chosen content without depending on the developers.

With a need to create different forms for different content types, it enables you to simply select the view type needed. Site administrators and content editors can configure the content to be displayed on the website by choosing a particular set of fields to display on a specific location on the page to view the content type in different ways. 

FVM Empowers Content Editors 

Content editors can use the module for content to be repurposed on the website. In instances where they need to create breaking news content type for a news, they can use the same bit of information to be reused for (different content types) news summary, detailed news and videos. 

It benefits the content editors by:

  • eliminating the process of creating multiple bundles, hence giving birth to a less complex system
  • employing the same URL, therefore avoiding any content duplication and SEO penalties

How to Use FVM Module

Site administrators have the permission to configure a particular view mode by enabling or disabling the settings through the ‘Field View Mode Settings’ button on the Field View Mode page.

 

Enabling the module

Step 1: Navigate to Structure > Article > Manage Article>Manage Display.

Step 2: Now, you will be able to see different view modes available. For instance, here the available list of modes are:

Default, Card, Card Common, Full content, RSS and Teaser.

Step 3: While choosing the format of each of these fields, you can also select one from the list of bifurcated options. Eg: while choosing the format for body field, you can make a choice out of summary or trimmed content or just trimmed content.

While choosing the format of each of these fields, you can also select one from the list of bifurcated options

Step 4: Click the Save button (present at the bottom of the page).

Step 5: Now to enable the field view mode for a particular node, go to its Edit tab as shown in the screenshot below. 

enable the field view mode for a particular node, go to its Edit tab

Step 6: Click dropdown menu under View Mode and make the selection out of the options available. Eg: Card. Click the Save button.

Step 7: On updating the particular content type, the selected content type will only display the fields which were configured. On choosing card view mode, the selected article gets displayed as shown below:

On updating the particular content type, the selected content type will only display the fields which were configured.

Field View Mode Settings

Site admins can enable or disable view modes available under each bundle by checking or unchecking the options to show only the selected ones on the website.

11-3

Note: Default view mode will not be shown in the list.

Also, if the administrator does not choose any option, then all the choices would be shown to the end-user on the website. This functionality is similar to selecting all of the choices.

Disabling FVM

If you want to disable field view mode, it is preferred to hide that field by 

Structure > Content Types > Article > Manage Form Display and moving the field “View Mode” to the disabled section and click “Save”. 

Click Structure> Content Types> Article> Manage Form Display and move the field “View Mode” to the disabled section a

This will remove Field View Mode functionality from the page and editors won’t be able to see it.

Warning!

Disabling the field from FVM settings will delete the field, resulting in loss of data.

Wrapping up

It is important to focus on helping content editors by making them overcome the challenge by delivering Drupal modules which are simple and intuitive to operate. FVM crafts the best content editing experience possible as per specific needs of content authors to empower them with the right tools to get the job done efficiently.

Subscribe to our newsletter