I am new to Drupal (but have been a developer/designer for a long time) and trying to figure out the Block/View relationship as it applies to the Views Slideshow.

The main config I want to do is to set the slideshow for the frontpage only. But there will also be other content on the home page (normal text).

I have verified that the module itself and jquery.cycle is working fine. I can create a block or a view(page type) and set it to slideshow and it shows fine. It also will show in the preview with no problems.

My setup is slightly expanded from the default install, because I want my client to be able to add content, choose content of type (slideshow), add a Title, Image and Caption and the slide will be added.

I created the content type "Home Slides", and the custom fields "Title, Image and Caption", and this is also working.

The issue is that I can't seem to find a way to set up the slideshow and have content under it. I have tried a zillion different combinations of view/block/page formats and filtering but don't know enough about it to get it right. Can anyone push me in the right direction?

Thanks!

[edit] - Oh a quick addition. For this round I'd like to do it all from the admin if I can. If a function or template mod is needed I would do it but only as the last option.

Comments

VM’s picture

I'm not sure what 'content' you are referring to. Is this content that is also in the slideshow, a different view, other? Please elaborate.

In general the views slideshow block would be displayed on a front page in a specific region above the content region.

TechDragon12’s picture

For the content, it is the same as my client logging into the admin and adding a page of content. But instead of the page, they would choose Home Slideshow.

I have tried creating a view (as block) to put on the front page, but it doesn't show up. Only the default front page view shows up. I also tried adding the slideshow block to the default front page view (the +ADD in the titlebar), but it doesn't allow me to change the formatting away from unformatted list... it is either one or the other.

Maybe I'm asking the wrong questions, but if I could get your suggestion to work (add the new slideshow view) in a region above the content that would be terrific. What do I need to do to also get the slideshow view on the front page?

TechDragon12’s picture

Just as a note, I stripped out all of my changes and followed the default setup (OS Training) to the letter. Now it's working.

Now I can go and make the changes one at a time and figure out if it was something I did (probably), or an issue where the slideshow doesn't recognize a custom Content Type and custom Fields.

TechDragon12’s picture

So the reason was within the block. I had restricted the block to my custom Content Type which for some reason broke the slideshow. To fix it, I left Content Types unrestricted and just filtered the custom Content Type in the View.

So now, when my client wants to add a new slide, they can choose the Content Type, put in the Title, Caption and Image and all's good!

I honestly don't know if it's a bug or limitation within Drupal 8, or there is a deeper relationship that I'm missing, but at least this method works if it helps anyone else out.