Forums » Ideas
multiple slideshows
flow
AUSTRIA
2008-05-02 15:57:24
 

Hi there!

I am setting up an portfolio for my girlfriend (kathiwalter.de/index.php) and I'd like to have multiple slideshows on one page.

My idea is to divide the images by title. So I added

AND media_title = 'web'
to the database query. That works - only images with the title "web" will be displayed in this slideshow.

But here ends my knowledge - how could I have a second slideshow displayed with f.e. medatitle='print' on the same page?

Vaska
I WROTE THIS
2008-05-02 18:41:28
 

Nice start on the customization there...very nice.

In the future this might be easier as we'll have a tagging system...but that's not released yet. I think you are trying to do something along the same lines.

What I would do, is code all of this up into a single plugin. I'm guessing you are doing this. Then simply run through the code twice...the first time for 'web' and the second time for 'print'...all the while concantenating (sp?!) your output variable. Then, I would add any additional styling for the separate image divs. Note that the Slidedhow plugin will need some css help because the images are output in a way that has them ride on top of each other AND anything else in their way (z-index) - that's what I mean by the extra styling.

If this makes any sense, as it's probably the worst answer I've ever provided, then you're on your way. ;)

flow
AUSTRIA
2008-05-03 10:38:26
 

Hey!
Thanks - customization is fun with the nice, clean code :) I love to have all the styling just in the css-files...

I think I know what you mean. But I have some issues understanding the whole code... there are some lines I just dont get (I'm not really advanced in coding php).
For example I am not really sure what all the variables do.
Or that one: $OBJ =& get_instance();

Maybe I'd read a php-documentation to get into the script a bit more.

cheers, flow

Vaska
I WROTE THIS
2008-05-03 10:58:50
 

You only need that once...it carries alot of code around the site (OOP)...including the database connection. Aside from that, as you already know how to deal with the queries, you don't need to know more about it right now.

It's hard to explain each and every variable, if you can follow along with what you see it's enough.

;)

Showing 1 - 4 of 4 posts in Forum > Ideas > multiple slideshows
 

You need to be logged in to post.