image field - displaying in an article with thumbs

More
14 years 1 month ago #4891 by unnamed
Hello,

at first, sorry for my bad english :)

I found FLEXIcontent a few days ago and it looks like a great solution for many projects.
The first steps are very hard without an english or german tutorial, but learning by doing is just ok.

My first goal is an article with an JQuery slideshow. I added image-fields to an article-type. So the backend-user can create an new article, select the images from his local drive, and wirte the text. In the frotend the images should be displayed in a layer for the slideshow. This works great.

But I need the thumbnails of the images, too. They should be displayed in a <ul> under the other images inside the slideshow-layer. So the frontend-user can easily switch the images by clicking the thumbnails.

For the big images the solution is very simple:
Code:
<!-- # slideshow # --> <?php if ((isset($this->item->positions['slideshow']))) : ?> <div class="pics" id="slideshow"> <?php if (isset($this->item->positions['slideshow'])) : ?> <?php foreach ($this->item->positions['slideshow'] as $field) : ?> <?php echo $field->display; ?> <?php endforeach; ?> <?php endif; ?> <ul></ul> </div> <?php endif; ?> <!-- # slideshow ende # -->

With
Code:
<?php echo $field->display; ?>
I can display the image witch is in
Code:
$this->item->positions['slideshow']
.

But how can a display the thumbnail of each image?
I have to say, I'm not a PHP-profi, but here is one sitting beside me..

I hope you guys can give me a tip.

greets
unnamed

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.263 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline