• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Gallery, how to call one image with img option?
PostPosted: Fri Mar 02, 2012 1:49 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 117
Hi,

i'm trying to call one image from a gallery folder.

I tried :

{Gallery img='15'}
and
{Gallery dir='my-dir' img='15'}

but nothing works... does anybody has success in using this option?
Thx.


Top
 Profile  
 
 Post subject: Re: Gallery, how to call one image with img option?
PostPosted: Fri Mar 02, 2012 2:05 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 117
Some precisions:
i have many sub-directories in the Gallery (and in each some pictures). It seems that the img option make no distinction between a picture and a directory, if i write img=15, it makes a link to the directory with ID15 (and nothing displays !).
So is there a simple way to call the first image of a directory, without writing the good id of the picture?


Top
 Profile  
 
 Post subject: Re: Gallery, how to call one image with img option?
PostPosted: Fri Mar 02, 2012 4:44 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1316
You can make a template that only shows the first image.. The default template executes a foreach over all the images and shows the thumbnails. You can modify it to select only the first image, and have it show the real image, not the thumbnail.

The {Gallery img=15} works for me, as long as you have an image with that ID.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting