Community

Slideshow where slides depend on node you're viewing

Hi,

I'd like to make a slideshow where the content is defined by the node the user is viewing. Like if you're on the homepage, you can see slides from our brands, products, ... as to when you're on the /about-page where you can see pictures about what we do and who we are. This differs by the page you're on.

I've tried adding an extra node reference field to the content type I had to add for the Dynamic Display Block module (where I'm working with), where I can adjust where each slide can be seen on what page and fixing the view with the filter of the node ID, but that didn't help me much...

Anybody who can share me some insights and/or experiences? Much appreciated.

A.

Comments

Honestly

I'd just use views to make a separate slideshow for each page, throw it into a block, configure it to the correct page and call it a day :)

Hi,Fixing seperate blocks

Hi,

Fixing separate blocks for every page is one thing, but the problem is that it's not a flexible way for in case the pages change or there are a couple more... It's one thing, but I'd call it plan Z instead of plan A ;-)

Besides, how would you separate the slides (coming from a custom content type) on each page? The view is based on the content type and I cannot do it with a node reference field, since half of the pages are views...

A.

---

You could create a template file with the slideshow "hard coded" and have it pull in the node type to determine which slides to show.

Fields

Fields

taxonomy

This is pretty easy with Views slideshow and taxonomy.

If each page has a taxonomy field and each slide image has the same taxonomy field, taxonomy can work as the "glue" to connect these images together. When you are on any page you can use that node's taxonomy field as a contextual filter on the Views slideshow to only show images that have that term.

Bonus: When you create your slides you can assign them multiple terms. So that great picture of the beach can appear on the home page AND the contact page.

A list of some of the Drupal sites I have designed and/or developed can be viewed at http://motioncity.com/drupal

Hi, Well, the problem is that

Hi,

Well, the problem is that it's not just on pages, but also on other kinds of nodes. Taxonomy field is one thing, but if it's also intended to be displayed on taxonomy term pages itself, then it's not really possible I'm afraid...

Anyhow, somehow I should be able to attach the nodes of the custom content type depending on the menu-item (and the pages below) without the items being displayed in the menu. This could give me a work-around, if I can select (multiple) parent menu-items.

For now I got it kind of working with the Views Slideshow module instead of the DDBlock module, but it still remains unfixed for reference to the taxonomy pages... :-(

Anybody who's got some experience with this?

The easiest way to do this is

The easiest way to do this is by using Nivo-Slider module. (http://drupal.org/project/nivo_slider)

Create a region to hold the nivo slideshow block. Then add slider images to nivo slider. When you add images, assign the nodes you want the images to appear.

Eg,
image 1 - < front >
image2, image 3 - node/2 - creates a slideshow of image2 & image 3 and so on....

In case you want a static image, just add one image to that node and set the transition to FADE.

In case you need further help skype me @swarkr

Swaroop Kumar
Email: swaroop@crystalinfotech.com

nobody click here