Drupal 10 - fields not inserted into views output

Created on 22 January 2023, almost 2 years ago
Updated 19 February 2023, over 1 year ago

Problem/Motivation

A slick slideshow is created and structure/Jquery/controls/cycling etc. works fine, but there are empty divs where the views fields should be inserted in both admin and frontend. All the container divs making the slideshow output fine, just not the actual views fields which are blank.

Steps to reproduce

- Fresh install of Drupal 10.0.02 with only Slick and and Slick Views modules installed, including their dependencies and Slick library 1.6.
- Made some dummy nodes and a basic Slick optionset for testing
- Made a view block using Slick Carousel format with title as fields
- Admin preview has empty fields as does the block on frontend when published.

💬 Support request
Status

Fixed

Version

2.6

Component

Documentation

Created by

🇦🇺Australia Ryanm81

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Ryanm81
  • 🇮🇩Indonesia gausarts

    Thank you.

    Please install Slick Example, put their blocks, observe, and let me know?

  • Status changed to Fixed almost 2 years ago
  • 🇮🇩Indonesia gausarts

    Sounds like old gotchas:

    > Check Use field template under Style Settings so that the Slick field themeing is picked-up.
    Repeat, this is only checked if using Slick field formatters with Unformatted list, not when acting as regular Image/ Blazy formaters embedded within the Slick Views style format. If confusing, just check and uncheck, clear cache and see the output, you'll know which works. This applies to any formatter, not only Slick, bear with it.

    Read more at project home about Gotchas.

    Feel free to re-open if still an issue, be sure to screenshot or paste the troubled HTML by pressing F12.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed over 1 year ago
  • 🇦🇺Australia Ryanm81

    Thanks @gausarts. This works for images where there is the option to set their field display to 'Slick image'.

    However, what if there are no images in the slideshow? Other fields types do not have the option for this.

    I tried setting the main view display for these to 'Slick Carousel' but it does not work with text, custom text fields etc. I even tried including an image field set to 'Slick image' and rewriting the output of this with the other custom fields I needed, to no avail.

    I am just confused why the main 'Slick Carousel' view is there? It does not seem to work as in Drupal 7 where you set the main view display to 'Slick Carousel' and then include whatever fields you want to display in each slide.

  • 🇦🇺Australia Ryanm81

    My apologies mate, I had not checked the 'Vanilla Slick' checkbox in the 'Slick Carousel' main view format. All good.

  • 🇮🇩Indonesia gausarts

    Glad you did it :)

    Image is not required so that you can slide texts just as well w/o Vanilla checked.

    Just be sure to fill in Title option, and or w/o Caption fields options. They are meant to accommodate texts, links, and anything else, and even additional images, or nested slides, etc. The term Caption might be undervalued, but it can be anything other than texts for more complex needs.

    In order for the fields to appear on those options, simply create whatever text fields you want.

Production build 0.71.5 2024