Exhibit Plugin: Visual Index

Vaska A / 2007-06-26 09:12:35   

Visual Index :: 26 June 2007

(exhibit.visual_index.php)

The Visual Index exhibition plugin allows you to create a page of thumbnails of any pages situated in the section it is published within. It will display the first exhibit image from any exhibit that has images.

For insance, if you wish to show a visual index of 'section x', create a page and simply select 'Visual Index' from the Exhibition Format select menu. You may add text to the page. Obviously, you can not add further images to the page where you use this plugin.

Download and copy the extracted file to your /www.com/ndxz-studio/site/plugin folder.

Downloads

markomania / 2007-06-26 11:30:10   

works great-thank you!
but i´d have one more question-using the visual index with hidden exhibits does not seem to work-once you hide an exhibit in the index, the visual index doesnot show the first image any more-is that meant to be like that?

Vaska A / 2007-06-26 12:54:34   

Change line 26 from

AND hidden != '1'

to

AND hidden = '1'

then it will ONLY show hidden pages in that section.

Or, you could take that out completely and it will show any published thing from the section.

markomania / 2007-06-26 13:19:27   

perfect!
thanks a lot!

rosalia / 2007-06-27 19:39:18   

the visual index is a great tool. thanks!! i was wondering if it would be possible to define the thumbnail size or/and the space between the thumbnails.

Vaska A / 2007-06-27 21:45:13   

You could do that within the plugin...there is a spot for adjusting the css. You could also adjust the thumbnail size straight the code.

Good idea, I could also add the thumbnail size to the plugin part of things as well.

rosalia / 2007-06-28 13:13:26   

I think it would be fantastic, if you could add the thumbnail size to the plugin part! Do you have an idea from about when on this tool could be available? Thanks.

Vaska A / 2007-06-28 16:09:24   

How about in 5 minutes from now?

Woops. I'm confused. This is an exhibit plugin and not a regular plugin. So, it's not possible to make it quite that easy. However, I added a line at the top of the file you can edit. The new default is 150. If you would like to change the value you can simply edit it in the file:

$height = 125;

Just be sure that your thumbnails aren't too big or there could be some messiness. We'll improve these things in the future.

markomania / 2007-06-29 08:21:27   

a great tool this plug-in is!!

Vaska A / 2007-06-29 14:36:14   

People are already customizing it...we might have other iterations of it to release soon.

serviceforthepeople / 2007-09-03 15:37:15   

is it possible to have the thumbnail as what ever size the image is ?
i want to have different size images in he visual index.

also can it display the exhibit name next to the image ?

thanks..

Vaska A / 2007-09-03 15:44:48   

it could...if you customize it a little bit. ;)

serviceforthepeople / 2007-09-03 16:50:20   

been trying to tweak it for a while now ...
can you give me some pointers .. in the which part i should be messing with ?
or how i can find out how to do this ?

Vaska A / 2007-09-03 17:01:10   

I don't really know. You need to edit the css and the code where you deal with the size of the image. You'll need to set a hard value...and perhaps adjust the css to deal nicely with the change.

Aside from sitting down and doing it myself (no time for it), that's about the best explanation I can give.

serviceforthepeople / 2007-09-03 17:06:12   

ok ... i see what i can do .. thanks anyways !

rofl / 2007-11-07 00:07:52   

Hello Vaska,
Is it possible to display the thumbnails from all my sections ?

Vaska A / 2007-11-07 00:26:15   

It's possible, but the plugin doesn't do that. Could be hacked up to do this though.

trimel / 2007-12-03 23:18:40   

I think Ive stumbled on a little bug...
when I deleted the first related asset to an entry, the plugin no longer lists this in its index... is it not refreshing the relationship to the next asset?

trimel / 2007-12-03 23:24:40   

ah its in the query i see... the asset with media_order as 1 no longer exists when removing the asset from the entry so none is found... so either removing this line, which will result in sporadic thumbnail results or re-writing to fetch the lowest media_order value would solve the problem...


$imgs = $OBJ->db->fetchRecord("SELECT media_file, url, title FROM ".PX."media, ".PX."objects WHERE media_ref_id = '$get[id]' AND id = media_ref_id AND media_order = '1'");

trimel / 2007-12-03 23:24:59   

once i revist my sql skills ill post a fix...

trimel / 2007-12-04 03:10:29   

Okay so here is the revised query that will do the trick...


SELECT media_file, url, title, media_order FROM ".PX."media, ".PX."objects WHERE media_ref_id = '$get[id]' AND id = media_ref_id AND media_order = (SELECT MIN(media_order) FROM ".PX."media WHERE media_ref_id = id)

simply instead of always looking for the media_order=1 it will find the lowest value of media_order within a series of related assets, so in the situation where you have say deleted the first thumbnail, your image used for the visual index will default to the next lowest number... I guess this beats refreshing the media_order fields for that set...

Vaska A / 2007-12-04 09:01:47   

Or, you could simply resort your images after you have deleted one. I thought that the order was updated when an image was deleted but I guess not...easy to fix.

shiftshane / 2008-01-06 21:35:52   

Hey Vaska (or anyone else), I just saw that you discontinued support for the Visual Index plugin and removed it from the downloads page. Is there any way that I could obtain a copy of the plugin? I promise to not ask for help with it :)

Thanks so much!

Vaska A / 2008-01-07 03:41:46   

Sorry, it's gone.

This thread has been closed, thank you.