Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Remove pagination 18 Feb 2013 14:56 #6811

  • akasha
  • akasha's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hello,
I need to remove pagination: how can I do it?

Thanks!

Akasha

Please Log in or Create an account to join the conversation.

Re: Remove pagination 19 Feb 2013 19:23 #6817

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
There are two steps at this :
1) Remove the display of the pagination stuff in cook : easy
			<?php echo JDom::_('html.pagination', null, $this->pagination);?>
That's the line you want to remove from your xxx_grid.php in the views/your_view/tmpl/ folder.

2) Use a template override to modify the pagination.php file and set a huge limit, like 10000 e.g.
Or if you know you won't have more than 100 rows, you can modifiy it in Joomla admin -> Configuration -> Site -> Set List Length
.
Are you sure you want to do this, as it could cause memory drain ?
The following user(s) said Thank You: akasha, JoomGuy

Please Log in or Create an account to join the conversation.

Last edit: by VeCrea.

Re: Remove pagination 19 Feb 2013 21:15 #6818

  • akasha
  • akasha's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Thanks for reply!
Yes, I'm sure I want to do this: I won't have more than 35 rows, so pagination isn't usefull.
I solved in second way.
Thanks!

Please Log in or Create an account to join the conversation.

Re: Remove pagination 19 Feb 2013 21:27 #6819

On a related note, does anyone know where the pagination combo values are set, i.e. number of rows?

I have some big lists and I don't want "All" to be an option.

Thanks!
Dave

Please Log in or Create an account to join the conversation.

Re: Remove pagination 20 Feb 2013 20:31 #6823

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
hell, i knew this... Will look for it

Please Log in or Create an account to join the conversation.

Re: Remove pagination 20 Feb 2013 20:41 #6824

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
Found
libraries/joomla/html/pagination.php

around line 422
	public function getLimitBox()
	{
		$app = JFactory::getApplication();

		// Initialise variables.
		$limits = array();

		// Make the option list.
		for ($i = 5; $i <= 30; $i += 5)
		{
			$limits[] = JHtml::_('select.option', "$i");
		}
		$limits[] = JHtml::_('select.option', '50', JText::_('J50'));
		$limits[] = JHtml::_('select.option', '100', JText::_('J100'));
		$limits[] = JHtml::_('select.option', '0', JText::_('JALL'));

		$selected = $this->_viewall ? 0 : $this->limit;
So maybe it's possible to override ;-)
The following user(s) said Thank You: JoomGuy, dyoungers

Please Log in or Create an account to join the conversation.

Last edit: by VeCrea.

Re: Remove pagination 22 Feb 2013 15:28 #6835

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Thanks again VeCrea!

K++

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.531 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started