Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [display-suite]

The "Display Suite" module allows to take full control over how the content is displayed, using a drag and drop interface.

-1
votes
0answers
15 views

Add a class to an existing field

I have the following image HTML: And I would like to add a class "my-class" to the existing tag as in:
0
votes
0answers
21 views

Drupal 8 - Module to inject static html inside display mode [on hold]

I would like to add a separator between two fields. I thought using Field Group would solve my problem by adding a div between my two field but the group is not shown if empty and I don't want to add ...
0
votes
0answers
32 views

How to use DS layout on page generated with views?

I have a site where products are shown in different categories using taxonomies. I then use a view that emulates Drupal core's handling of taxonomy/term to generate those pages. Now, in only one of ...
1
vote
1answer
16 views

Assigning new region in a display suite layout does not show contents placed inside newly created region

// rmch-content-2.tpl.php <?php /** * @file * Display Suite RMCH Two Column Header template. * * Available variables: * * Layout: * - $classes: String of classes that can be used to style ...
0
votes
0answers
25 views

How to properly set a custom »View mode« with Display Suite

I am using Display Suite to manage custom »View modes« for content types on a Drupal 8 setup with the Bootstrap theme. But I have some trouble to set up my custom »View modes«, as only a few fields ...
0
votes
1answer
28 views

How we can have layout options at time of node creation just like we select in panels and display suite

How we can add layout selection option of display suite or panel during node creation. Any solution available. The layout selection should be at the time of node selection.
0
votes
0answers
14 views

Link an Image field to a colorbox popup text field in pargraphs

I created a paragraph that collects an Image and some text in long format with no summary. How can I configure this so clicking on the Image displays the long format text in a colorbox popup? I can ...
0
votes
1answer
46 views

Can Display Suite be used for “Show: Fields” as well as “Show: Content” to be able to rewrite field output?

I need to be able to adjust field output in view results but also want to make use of Display Suite for layout. However, it would appear that Display Suite is only available for "Show: Content" and ...
0
votes
0answers
38 views

Using Display Suite API to flatten field_collection

I have an existing module that used node_view to build out html for an entity. Customer desires access in Drupal to change up the order of the display of the fields and Display Suite seems to allow ...
1
vote
1answer
34 views

Theme Preprocess Conditional Field Display

Looking for a way to preprocess two fields. I am trying to hide Field 1 from display if Field 2 has value. If Field 1 has value and Field 2 has value display Field 2 only. If Field 1 has value and ...
0
votes
0answers
15 views

How to get two columns layout for print using Display Suite?

Using Drupal 8.6.1, Display Suite 8.3.1, Printable 8.1.0 (ex-Printer, email and PDF for D7) My content type A is displayed with two columns stacked (provided by Display Suite) and it works fine on ...
0
votes
0answers
55 views

hook_ds_pre_render_alter() doesn't work

I'm trying to alter display suite output but it doesn't remove the content which I'm trying to. When I view the node in 'full' view mode and it's a credit card content type and 'field_middle' is ...
0
votes
0answers
20 views

Where is Display Suite “VIew Mode per Node” settings stored in the databese?

I want to find all instances where somebody has set a different view mode per node (via Display Suite extras). I checked the following tables and can't find specific nid: ds_fields ds_field_settings ...
0
votes
0answers
13 views

Which token is available in drupal commmerce in order to show the price?

In D8 i'm using drupal commerce. I would like to display a product entity. For this I used a views which displays a block. In this view the entity mode of a product is displayed. In here there is ...
0
votes
1answer
99 views

Manage Display Field Label not changing: inline does not work

I have the same problem as question 212176 and discovered it has to do with CSS. I have 2 (local) sites both with module ds enabled. I configured in both a field where I want the label and the value ...
0
votes
0answers
20 views

How do I reorder page elements placed with Display Suite?

I want to change the stacking order of a certain page of a website of a client of mine. It's quite simple what I really want. You can check the screenshot. The website's current Drupal version is 7.59....
1
vote
1answer
90 views

Creating Display Suite Custome Layout

I'm using Display Suite for my website and i want to add a couple layouts to Display Suite to apply to some pages. I have checked how to add custom layout to Drupal Suite with google, Stack Overflow ...
1
vote
1answer
13 views

Prevent page creation for a published custom content type

I have a Drupal 8 custom content type that is used in views only. I would like to prevent this type from creating a web page for content that is published.
0
votes
0answers
13 views

Why do fields disappear when I panelize the display?

I'm using Drupal 8. On a content type I click on Manage display. I can then choose to panelize the view mode. When I panelize the view mode, the field rows disappear and all I can see are the layout ...
0
votes
0answers
321 views

Programmatically render user edit form with form mode [duplicate]

I can't figure out to render the user profile form with a custom display mode. I did search the forum and internet and it seems that this piece of code should work: function ...
0
votes
1answer
15 views

Full content view mode per role

I've looked around but didn't find the right solution. In D7.5x I would like to create different view modes (of Full Content) per role. I am using Display Suite. The situation should be like this: I ...
1
vote
1answer
210 views

Conditionally display a field

On my "teaser" view mode I want to display my Image field but if the Image field is empty I want to display my Title field instead. I have tried using hook_preprocess_node but it appears that this ...
0
votes
1answer
34 views

Where does the value $ds_content come from in display suite templates?

After updating to the newest version of display suite I noticed that in display suite ds-reset.tpl.php the value for $ds_content is now blank. <?php /** * @file * Display Suite reset template. ...
1
vote
1answer
292 views

Displaying current date on views

Is there a way to display the current date on views? I just realized that I couldn't use global tokens nor could I get custom date created on Display Suite on views.
0
votes
2answers
148 views

Display Suite vs. EVA for displaying a view as field

I want to display a specific view as a field in nodes. It’s the same view for all nodes of this type, making use of the contextual filter "Content ID from URL". I found two solutions using ...
0
votes
0answers
8 views

Panels layout not set while creating content

I have configured a layout example 1-col-trial for all contents of a specific content type. It worked for past many years and suddenly when I notice for new contents the layout has not been set for ...
0
votes
0answers
26 views

How to apply a different layout for one specific webform?

I would like to apply a specific layout for 1 specific webform. Therefore I did. D7 - Enable DS extra module - Enable DS view per node setting - Add a new DS view (viewmodefoo) for type node - ...
0
votes
1answer
44 views

Export node display with Features not taking in account format of fields

I'm trying to export a node display with features and I already created the feature with the display and imported it to another site. The problem is that the display has some differences, mainly in ...
0
votes
2answers
43 views

How can I remove only submitted time from node view?

I only need to remove the published time from the submitted by field while viewing the node. Is it possible to do with display suite or there are other different approaches?
1
vote
1answer
57 views

Add code to <head> for specific content type

What would be the best way to add code inside the tag of specific content type? Display Suite is being used for layout and we are using a custom theme. Have created html.html.twig. If I add ...
1
vote
0answers
100 views

How to define CSS for Custom Display Suite Layout

I have added a custom layout for Display Suite on Drupal 8. Everything is working except the CSS for the custom layout is not working. This is my layout in my theme folder: mytheme.layouts.yml ...
1
vote
1answer
158 views

View Mode in Page Template Suggestions (Drupal 8)

I would like page template suggestions when a node is using a custom View Mode. I think this would happen in hook_theme_suggestions_page_alter(). I have already been able to get page-level template ...
0
votes
1answer
177 views

Display Suite Custom Wrappers and Custom Classes Tabs Not Appearing in Manage Display

I am using Display Suite layouts for some of my pages. I want to add in some custom classes for the regions. However, the custom classes and custom wrappers tabs are not appearing on the Manage ...
0
votes
0answers
161 views

How I can I have a separate variation field in Commerce 2?

I have a Commerce 2 website, where my product display page is a two column layout through display suite. In 1 column I would like to display the picture of the product variation and, in the other ...
2
votes
0answers
506 views

Creating custom 'Display Suite' 'Bootstrap layouts' layouts

I am using the bootstraps layouts module with display suite to provide bootstrap styled layouts for a bootstrap themed Drupal 8 website. Is there a way to create custom layouts based on the '...
0
votes
1answer
49 views

is there a way to hide a “custom field” in edit mode Drupal 8?

I have a form with 5 custom fields. I would like to hide a couple of fields based on the view mode in the back-end while the user is editing the form. Right now you can easily hide the field in the ...
1
vote
1answer
34 views

Display suite, two layouts for the same node?

I'm using display suite with nodeblock and I'd like to have a different layout for the block than the main page. How can I do this?
1
vote
1answer
168 views

How do I programmatically enable a view mode?

Let's say I have created a new view mode with DS. How can I activate it programmatically? I want to achieve this because I'm doing an export with features but, despite the Features module exports DS ...
0
votes
1answer
33 views

How to keep Display Suite CSS classes in code?

I'm using DS in my D7 project along Features, so I've been able to keep all my new DS layouts, CCK, etc. in code, by generating a custom feature. All good there... until I had to add some custom CSS ...
1
vote
1answer
705 views

How to add code logic to Display Suite fields without PHP in Drupal 8? Twig?

Using Display Suite in Drupal 7 I can easily add PHP logic to any custom Display Suite Field. In Drupal 8 PHP is not allowed. How can I program logic in Display Suite fields in Drupal 8? As an ...
0
votes
0answers
83 views

Display suite extra expert mode field classes not working on entity form fields

I'm using display suite extra and trying to ad classes to fields via expert mode, but it's not working, I tried both teaser and full content, am I missing something here? Using boostrap theme and ...
0
votes
0answers
28 views

How to automatically copy any changes to one content type to another content type?

I have two content types that will always want to have the exact same fields and display modes on each of them. How could I go about having any changes made to existing fields, adding new fields, or ...
0
votes
0answers
88 views

Properly remove module

I was fooling around with Display Suite today, as I had not been able to get it working properly. Today I discovered the change in Layout/Layout Discovery, and decided to remove all of the modules to ...
0
votes
1answer
107 views

hook_view, hook_theme and Display suite

My module adds further content to a specific node bundle, in the "view" phase, in the following way: hook_view (under the right conditions) adds these "contents" to the node display array hook_theme ...
0
votes
1answer
131 views

How do I stop content overlap with Display Suite on mobile/narrow screens?

Building a site where sugar glider breeders and vendors can list their businesses and wares and find informational articles, links to exotic vets, and more. The site is built on Drupal Core 8.2.7 ...
1
vote
0answers
33 views

Speed up AJAX loading on manage display page when moving fields among regions

When I'm switching my fields into different regions, it takes at least 20 seconds to make it change. I'm not able to change any other field while I wait. The only work around to this was to disable ...
2
votes
1answer
181 views

Custom display suite template

I'm trying to understand Drupal 8 theming, since I want some custom layouts for some of my pages. I've tried Display Suite module, and it gets me some of the way, but non of the display suite layouts ...
0
votes
1answer
60 views

Display the username in a custom block

I'm using D7 and I have a custom content type (Client) and I have a custom select list field for the User entity displayed in a custom block. I have a custom display layout for the Client content ...
0
votes
1answer
177 views

Pages broken after update

I have recently attempted to update from Drupal 8.2 to 8.3. After updating, all pages that use Display Suite do not render correctly. The markup generated contains a bunch of "<>" instead of the ...
0
votes
0answers
31 views

Display Suite Code Field does not display on node

I'm trying to manipulate a field in display suite on a test site, but the field is not displaying in DS format. Is there anything I need to link or enable in order to use this format?