Welcome, Guest
Username: Password: Remember me

TOPIC: Remove pagination

Remove pagination 18 Feb 2013 14:56 #6811

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

Thanks!

Akasha
The administrator has disabled public write access.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
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 ?
Last Edit: 19 Feb 2013 19:32 by VeCrea.
The administrator has disabled public write access.
The following user(s) said Thank You: akasha, JoomGuy

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

  • akasha
  • akasha's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 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!
The administrator has disabled public write access.

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

  • dyoungers
  • dyoungers's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 16
  • Karma: 0
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
The administrator has disabled public write access.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
hell, i knew this... Will look for it
The administrator has disabled public write access.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
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 ;-)
Last Edit: 20 Feb 2013 20:42 by VeCrea.
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy, dyoungers

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.
Time to create page: 0.085 seconds

Get Started