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.

0
votes
1answer
24 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
8 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
0answers
11 views

How to stop automatic wrapping of text around image in content wrapper

I am using Drupal 8.6.3 and theme "Drupal 8-W3CSS Theme". I don't have much technical knowledge about Drupal by this I mean, the coding, templates, access files etc. I don't know php at all. I am ...
0
votes
1answer
39 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
33 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
24 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
14 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
31 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
18 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
10 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
57 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
19 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
64 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
11 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
198 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
11 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
143 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
32 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
206 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
119 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
7 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
22 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
42 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
41 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
52 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
75 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
99 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
133 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
142 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
471 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
47 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
33 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
143 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
31 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
612 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
75 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
82 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
99 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
118 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
31 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
164 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
58 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
173 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
28 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?
2
votes
1answer
763 views

Attach javascript library and settings to a node page

Normally, to attach javascript (settings or just a library) to a Drupal 8 node type (page), you should use template_preprocess_node and add it to the #attached array. (example) Problem with the ...
1
vote
3answers
61 views

Why are anonymous visitors logged in when they visit /user/[uid] page?

This seems to be a massive security floor in Drupal. I have the following display suite code in a Block which is added as a custom field to the User account display:- <?php global $user; $uid =...
1
vote
5answers
275 views

How to reset the display of nodes?

For some reason I can no longer manage the display of a node in the backend. Managing the form display works but not the frontend display managing. I get the following error message: Fatal error: ...
0
votes
1answer
25 views

Display Suite show results from blocks

I am using Display Suite search as default search module. Is there a way to add the contents of blocks to the search results?