Filtering images with views
| Project: | SlideShowPro |
| Version: | 5.x-1.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi there!
I have a problem filtering images with taxonomy / image gallery.
Short description:
All my nodes including a video file ( Embedded Media field)
and a image for the teaser. (image module).
I added some categories like sports, games etc. to the nodes.
I also done that with image gallery, to be shure i can filter it later slideshow pro.
Filtering is done by views which works fine.
Now i want to send images via xml to slideshow.
This works great if the filter in views are set to node typ / value image.
Every other setting does not work.
e.g. use slideshow pro: image galleries as filter, no image shows up in slideshow.
i tried various configurations and it looks like that only filtering by node type works.
with this parameter i can see the full image link in the xml file like
<img src="http://localhost/files/images/image1.jpg"
else the image1.jpg part is missing.
cheers
alex

#1
Hey Alex,
So you would like to show all images in the slideshow regardless of what content type they are posted in? How do you add the images to the posts?
-lx
#2
Hi and sorry for the delay...
I wanted to test the newest version of the module before i post back.
My configuration:
A content type with some cck fields, one of them a embedded media field
and to a associate pictures with every node, i use 'attach image' from the image module ( because of the resize features).
So inside every node there is a video and a picture.
If i now using e.g. views slideshow module (java) i can add a field 'display image' in views and set the option 'link to node'.
I can filter the input with every filter rule like taxonomy terms etc.
With slideshow pro integration i have to set the filter to node type 'image'.
If i use e.g. the node type video with the associated picture i get a xml file which does not include the complete picture path ( the filename image.jpg is missing).
I can't use only node type 'image' because the taxonomy tags are only associated with the video nodes. in this case i had to tag the video node and also the picture node.
And the biggest problem when i using slideshow pro is that the shown pictures in slideshow are related to the image node and not to the video node,
which means in my case that the user is leaded to the wrong node.
cheers
alex
#3
You will need to do a little bit of coding to get what you want.
The slideshowpro module creates the XML description of the slideshow in theme_slideshowpro_feed($view, $nodes, $type). As you will have there all nodes defined by the view available, you can pull out of the nodes what ever you want - also images that have been stored in an image field.
In this theming function, instead of calling _slideshowpro_xml_image($nid) to build an image XML description, call your own function that does the same for your content types.
Let us know how it goes. I am curious.
BTW: you don't HAVE TO define node type == image for SSP slideshow XML descriptions - it's just the only setting that makes sense without adding custom code.
#4
_slideshowpro_xml_image($node)
of course.