coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: vishnu on October 07, 2008, 06:22:55 AM

Title: How to make most viewed appear on the home page?
Post by: vishnu on October 07, 2008, 06:22:55 AM
Hi,

I want to display the most viewed section of my gallery in the home page and remove the random files section. In the template.html for my theme, I see a property {GALLERY}. where is it defined?
Any help appreciated.
Title: Re: How to make most viewed appear on the home page?
Post by: Joachim Müller on October 07, 2008, 07:28:44 AM
Did you read the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing)? The FAQ (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#NoLastUploads)? Obviously not. Reading the board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html) might be a good idea as well.
Title: Re: How to make most viewed appear on the home page?
Post by: vishnu on October 07, 2008, 09:55:02 AM
yes I did read the FAQ and documentation but I can't figure it out. I was expecting a walk through from this forum.
Title: Re: How to make most viewed appear on the home page?
Post by: amitbhalerao on October 07, 2008, 10:02:12 AM
Log in as admin, go to config(admin.php). Click on "Album list view".
Here you'll find "The content of the main page"
with value similar to..
breadcrumb/catlist/alblist/random,2/lastup,2

You can remove 'random,2' and add 'topn,2'.
Also you can change the number(to change the number of rows).

-Amit
Title: Re: How to make most viewed appear on the home page?
Post by: vishnu on October 07, 2008, 01:45:10 PM
thank you very much...
Title: Re: How to make most viewed appear on the home page?
Post by: Joachim Müller on October 08, 2008, 10:16:04 AM
That's exactly what is being explained in the docs and FAQ: in my above posting, I even posted deep links that point to the corresponding section. Again, it seems you even didn't bother to even click those links I posted.
Review your attitude - don't expect to be spoon-fed.
Anyway, marking thread as "solved", as you even failed to do that.