Questions tagged [display-suite]

13 questions
1
vote
1 answer

How to include a custom code field in a view or ds view?

Recently I was playing with display suite views. It's an interesting concept because this allows have content "displays" of a specific content type without adding displays to other content types that might not make sense. My question arises because…
Beto Aveiga
  • 3,466
  • 4
  • 27
  • 39
0
votes
1 answer

Drupal7 Apachesolr search with Facet Api and Display Suites facets configuration

Does anybody know, how I can get all my taxonomy_term_references for my video content type to be listed as Facet options on the Configuration > Apache Solr search > Facets tab (admin/config/search/apachesolr/settings/solr/facets)? I am trying to fix…
0
votes
1 answer

Override DS default layout

Using Drupal 8 I need to override the default DS "One Column Layout".To do that I use the suggested template name: ds-1col--tools-tools.html.twig . I have placed that file in various locations and then cleared cache but Drupal never picks up on…
Chayemor
  • 3,577
  • 4
  • 31
  • 54
0
votes
1 answer

Display Suite changes disappear, clear cache restores

I am using Display Suite to add a php button/link to the page for a single content-type. It works great. The title and the custom field (the button) appear as expected. After some time, less than a day I believe, the title and button are no longer…
0
votes
1 answer

Best way to embed js/jquery into a Display Suite layout template file?

I'm themeing a drupal site using display suite - all current versions. As you may realise, in drupal there are many ways to achieve an equivalent result. I have created a number of custom layouts in display suite. Now I want to add jquery to some of…
RominRonin
  • 101
  • 3
0
votes
1 answer

Drupal 7: Separating content edit screen in tabs

If you are familiar with drupal 7, you will remember there are some tabs at top right of edit screen of contents. I want to separate my content into those kind of tabs. Because I have numerous field collections in my content and they all have more…
0
votes
1 answer

With Drupal 7 tokens, how do I get the path from a custom link field?

This must be trivial, but for the life of me, I can't figure out how to get the URL/path portion of a link field with tokens. I am using the Display Suite module and want to make the entire teaser of a node link to the URL specified in a link…
0
votes
1 answer

unable to use display suite template files

i use display suite to style my taxonomy page and it suggests me some template files but i am not able to use that file, i put them in place but they do not include, do you know how it will works please ? or any references ?! this is my display…
0
votes
1 answer

Drupal Display Suite Code Field Issue: How to output Tokens, or PHP $entity inline

I am attempting to get two fields to display inline. Specifically, I need the Locator, and the Body fields to display inline. My Locator simply states the location of a post in plain text. i.e. "Duluth, MN - " My Body is the story. i.e. "Are strange…
Ganginator
  • 23
  • 1
  • 7
0
votes
1 answer

Using hook_ds_fields_info(), is there a way to use standard formatters so the options for those formatters are available in the Manage Display UI?

I followed a good tutorial here : http://previousnext.com.au/blog/creating-custom-display-suite-fields-or-how-i-learned-stop-worrying-and-use-hookdsfieldsinfo to create programmatically customs field with hook_ds_fields_info(). In my code below, I'm…
Martin
  • 1
  • 3
0
votes
1 answer

How to use token in fields using Display Suite module?

I have the following code using Fields in display suite module: But this does not work. My purpose here is to trimmed the content to 60 words for use in teaser. Because…
jaypabs
  • 1,519
  • 10
  • 43
  • 62
0
votes
1 answer

How to define another teaser for the second theme?

I have two themes: regular (1st) & mobile (2nd). Mobile theme binded with subdomain m.mysite.com. I can't show my mobile node teaser in mobile theme. I've created that teaser for mobile theme in Display Suite. Next I need to show this one in mobile…
Konstantin Konopko
  • 5,229
  • 4
  • 36
  • 62
0
votes
3 answers

Drupal Display suite title formatter

I am writing a title formatter for display suite, but title isn't a 'CCK' type. Can anyone help me out with how to define the formatter ?
Nealv
  • 6,856
  • 8
  • 58
  • 89