• 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  [ 6 posts ] 
Author Message
 Post subject: How to make an album cover?
PostPosted: Sat Dec 29, 2018 5:33 pm 
Offline
Forum Members
Forum Members

Joined: Sun Feb 10, 2008 4:02 pm
Posts: 89
Hello to all!
Can you please tell me how to make a conclusion on the pages of the site the cover of a particular album?
Now, if you make {Gallery dir = 'album_name /name}
then the page dumps all the contents of this album, which is not really necessary or correct.
How to do? I read the manual supplied with this module, but I did not find such information in it.

Ver. cms 1.12.2


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to make an album cover?
PostPosted: Sat Dec 29, 2018 7:10 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 862
Location: Victoria, BC
There's probably a few ways to do it, but one would be moving the gallery one level lower, creating a parent containing just the one gallery. When you call the module, you'd specify the parent gallery, and the thumbnail would be the child gallery's cover image.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to make an album cover?
PostPosted: Sat Dec 29, 2018 7:39 pm 
Offline
Forum Members
Forum Members

Joined: Sun Feb 10, 2008 4:02 pm
Posts: 89
I probably didn't quite clearly express my thoughts.
This is what the gallery looks like now
Gallery_root
| _____ gallery1
| _____ galllery2
| _____ gallery3
etc
| _____ gallery999

I need selectively from more than 100 albums to bring on the site page 5,6, and 25 album - but only their cover, if the user needs it, he will go to the right album and get acquainted with the photos.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to make an album cover?
PostPosted: Sat Dec 29, 2018 7:57 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 862
Location: Victoria, BC
From what I can see of the available variables, there's not a simple way. I can think of a few convoluted template and Smarty tricks, but it might be easiest with a UDT to get it right from the database.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to make an album cover?
PostPosted: Sat Dec 29, 2018 8:01 pm 
Offline
Forum Members
Forum Members

Joined: Sun Feb 10, 2008 4:02 pm
Posts: 89
Yes .. I also looked at the documentation and did not find anything intelligible ...
Sorry, you have to postpone the idea to the table ..
PS I'm not good at programming at the level that you said, but there are no simpler ways ..

DIGI3 \DIGI3:
From what I can see of the available variables, there's not a simple way. I can think of a few convoluted template and Smarty tricks, but it might be easiest with a UDT to get it right from the database.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to make an album cover?
PostPosted: Sat Jan 05, 2019 9:14 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3140
Location: The Netherlands
I think you should read this:
viewtopic.php?p=312793#p312793

It's a rather old post of mine and I should now do things a little different but the basics are what you need:

From one Gallery template make a call to the gallery module using the sub gallery directory. In my example you will find me hiding the unneeded images, however for the sake of efficiency, I would just not include them at all.

It might also be possible to set a specific image as the cover of its album. Then you need to change the code of the template to find that image.

Удачи! :)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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:  
Hosting Nation - Managed CMSMS Hosting