Go!
 
 
May 16, 2008, 05:22:04 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Config List Length independently of global site settings  (Read 7544 times)
zANavAShi
Newbie
*
Offline Offline

Posts: 34


View Profile
« on: November 07, 2006, 03:00:15 PM »

I have a problem with my Easy Gallery configuration.

Two other modules I have installed require me to set my global site List Length to "5" otherwise their page content spills outside the design of my site template and this has also effected the number of categories on my main category page.

What file do I need to hack in EasyGallery in order to set the number of thumbnails displayed on this page to a different number than my global settings - and please could you add independent configuration as a feature request for next release.

I want to change my EasyGallery to override global settings to some figure like "20" thumbnails per page (5 wide by 4 high)

Suggestions please?

Thanks,
Zana
Logged
Adam
Administrator
Hero Member
*****
Offline Offline

Posts: 4.253



View Profile WWW
« Reply #1 on: November 07, 2006, 05:08:16 PM »

It's quite a simple modification.

Open /components/com_easygallery/easygallery.php

Find:
Code:
$limit = intval(mosGetParam($_REQUEST, 'limit', $mainframe->getCfg('list_limit')));

replace with:
Code:
$limit = intval(mosGetParam($_REQUEST, 'limit', 20));
Logged

- Joomla developer -

IMPORTANT: http://www.joomla-addons.org/option,com_smf/Itemid,7/topic,1332.0.html
Do not send support requests by PM. Post on the forum in stead.
zANavAShi
Newbie
*
Offline Offline

Posts: 34


View Profile
« Reply #2 on: November 08, 2006, 01:08:59 AM »

Simply perfect, thank you.  Smiley

Please can you add as a feature the ability to change this setting in EasyGallery configuration?

Cheers,
Zana
Logged
Adam
Administrator
Hero Member
*****
Offline Offline

Posts: 4.253



View Profile WWW
« Reply #3 on: November 08, 2006, 09:28:43 AM »

Allready added it to the roadmap Smiley
Logged

- Joomla developer -

IMPORTANT: http://www.joomla-addons.org/option,com_smf/Itemid,7/topic,1332.0.html
Do not send support requests by PM. Post on the forum in stead.
Adam
Administrator
Hero Member
*****
Offline Offline

Posts: 4.253



View Profile WWW
« Reply #4 on: November 17, 2006, 04:38:57 PM »

Item added to the code.
Logged

- Joomla developer -

IMPORTANT: http://www.joomla-addons.org/option,com_smf/Itemid,7/topic,1332.0.html
Do not send support requests by PM. Post on the forum in stead.
BodgeIT
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #5 on: November 25, 2006, 01:45:34 PM »

Adam,
Would it be possible to have this configuration option more flexible?
I am able to show 4 thumbs in a row and would like to set this value in steps of 4, not steps of 5?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Joomla-addons.org © 2006 | www.bandhosting.nl | JCD-A Member | Newsletter | Sitemap |