Usergallery - Extended infos in thumbnailView

Creating and modifying plugins.
Post Reply
Linus
Regular
Posts: 66
Joined: Mon Mar 06, 2006 1:59 pm
Location: Mannheim
Contact:

Usergallery - Extended infos in thumbnailView

Post by Linus »

Hi,
I'm using the gallery plugin to display a folder in the thumbnailView. I want to display the extended informations like title, comment, size, etc. about a picture beneath the thumbnail.
However if I try to include the extended infos from plugin_usergallery_imagedisplay.tpl in plugin_usergallery.tpl:

Code: Select all

-- SNIP --
<div class="serendipity_gallery_thumbs" style="width: {$plugin_usergallery_colwidth}%;">
...
<!-- extended infos -->
{$plugin_usergallery_file.name}.{$plugin_usergallery_file.extension}<br />
{$const.filesize}: {$plugin_usergallery_file.size_txt} kb<br />
{foreach name="info" from=$plugin_usergallery_extended_info item="entry"}
    {$entry.name}: {$entry.value}<br />
{/foreach}
it won't work. How can I add those extended info fields?
Kind regards
Andi
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Usergallery - Extended infos in thumbnailView

Post by garvinhicking »

Hi!

You did enable the setting "display media infos" in the configuration of the plugin?

Also you might want to add a:

Code: Select all

<pre>{$plugin_usergallery_extended_info|@print_r}</pre>
to see what is contained inside the variable.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply