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.100 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started