HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[SOLVED] I want to change the default of 18 thumbnails per page to multiples of 5

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#57073 (In Topic #12417)
Avatar

Community saint

Thumbnails are loaded to a default of 18 per page, where do I go to change this?

I want to change the default of 18 thumbnails per page to multiples of 5 since I have rows of 5 images set up on my thumbnail pages. I did changed the "choices for number of entries per page" found in Setup/Configuration/Features/Galleries to 5,10,15,20,25 but I am still getting a default per page of 18. Where do I go to change this?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#57576
Avatar

Community saint

Just bumping this topic again. It is a minor irritation to have that 18 thumbnails per page keep showing up as default. My thumbnail display is based on a base number of 5 columns and not 3.

I know there must be a simple way to reset this but where it is has escaped me.

…anyone know where the setting for this is?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#60091
Avatar

Community saint

Still looking for where this gets changed…

Somewhere in the distant past of the Forum I thought someone had 'addressed' a similar request but I cant find it. I would just like to know where the default 18 is…


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#60097
Avatar

I believe it's hard-coded. The only solution for now would be to change the PHP code. If you look in site/pages/modules/galleries.php and search for "18" you'll probably find it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60111
Avatar

Community saint

Thanks Chris, your right on target.

I looked at the php file you mentioned and found 2 lines where there was an 18 shown and figured that of the 2 this one was probably the controlling code line

Code

$max=get_param_integer('max',18);
and changed the 18 to 20 and it works like I had wanted!!!!

Thanks again!


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: