How to insert thumbnails use "Extra Image Field"?

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

How to insert thumbnails use "Extra Image Field"?

Postby wuyu » Fri Apr 24, 2009 4:39 pm

how to modify the file hook_imagefields.php? I want to insert thumbnails in image field.
wuyu
 
Posts: 11
Joined: Tue Mar 31, 2009 10:33 am

Re: How to insert thumbnails use "Extra Image Field"?

Postby Bob » Tue May 05, 2009 2:01 pm

You shouldn't do that.. If you want the thumnbails on your site, you should do this in the templates. Like so:

Code: Select all
[[if $entry.extrafields.image!=""]]
<a class="fancybox" href="[[log_dir]]images/[[$entry.extrafields.image]]">
<img class="entryimg" src="/pivotx/includes/timthumb.php?src=[[$entry.extrafields.image]]&w=100&h=100" alt="[[$entry.extrafields.description]]" />
</a>
[[/if]]


This way you can easily use thumbs that link to the full sized images.
Bob
Lead Developer
 
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm


Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 2 guests