[Solved] Pagination FC v2.2.0 in J3.3

More
10 years 6 months ago - 10 years 6 months ago #51174 by tevez15
Hi,

I have a issue, just only in one website. Im using the version 2.2.0 and Joomla! 3.3.6 (recently updated from 3.2), but when I try change page, in my pagination, in url appears ?start=5, but, steels the page 1. This happens if I choose page 2,3,4, whatever.

If I turn off the sef, this works.

The only diference between then, is "start" and "limitstart".
I search in many websites and foruns, and the most of option is the route.

Can you help me? 8-)
Last edit: 10 years 6 months ago by tevez15.

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

More
10 years 6 months ago #51176 by micker
at first :
-try without sef
-try with native sef
and report

[edit by ggppdk]
-- when SEF URLs are OFF, Joomla URL builder will not change the "limitstart"

-- when SEF ON, Joomla SEF URL builder function will replace the URL variable "limitstart" with "start"

but the Joomla Site Router is supposed to restore it ... , see below

and if you search web for "Joomla pagination start limitstart" you will see other people have issues

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 years 6 months ago #51178 by ggppdk
Hello

i tested it works properly

-- look at the Joomla router for frontend (site)
$uri->delVar('start');
$vars = $start;


Joomla frontend router copies the 'start' URL to the 'limitstart' ... when SEF is ON

my guess is that some 3rd party system plugins messes with this ?
Code:
/** * Process the parsed router variables based on custom defined rules * * @param JUri &$uri The URI to parse * * @return array The array of processed URI variables * * @since 3.2 */ protected function processParseRules(&$uri) { // Process the attached parse rules $vars = parent::processParseRules($uri); // Process the pagination support if ($this->_mode == JROUTER_MODE_SEF) { if ($start = $uri->getVar('start')) { $uri->delVar('start'); $vars['limitstart'] = $start; } } return $vars; }


TEST THIS, edit file:
components/com_flexicontent/models/category.php

REPLACE line:
Code:
$limitstart = JRequest::getInt('limitstart', 0, '', 'int');
with:
Code:
$limitstart = JRequest::getInt('limitstart', JRequest::getInt('start', 0, '', 'int'), '', 'int'); JRequest::setVar('limitstart', $limitstart); // Make sure it is limitstart is set


-- the above will use start variable if limistart is not SET


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 6 months ago #51184 by tevez15
Thank you for your explanation.

The code you give works very well, thank you one more time :D

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.585 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save