Display# ALL not working (only shows 20 entries)

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Fri Jul 25, 2014 4:44 pm

In Joomla 2.5 backend whenever I set the "Display#" to ALL, it only shows 20 entries in certain components.

For instance, when using sh404SEF when I select "Display ALL" it automatically goes to "display 20" and shows 20 entries.
If I select "display 100" then it will show 100 entries.
At no stage can I get it to display all entries.

Same for JNews. If I select "Display All" Subscribers it only shows 20 entries. If I select "Display 100" then 100 will show.

The K2 component doesn't suffer from this bug. The "Display All" works fine here for all items, categories, etc.

In native Joomla, the "Display All" also works fine, and correctly displays all articles, categories, modules, plugins etc.

Can someone help me?

Thanks,

John.

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by itoctopus » Fri Jul 25, 2014 5:18 pm

This is a bug in the extensions that you've mentioned (sh404SEF and JNews). I have to say that I'm leaning towards saying that sh404SEF are doing this on purpose, because many websites using sh404SEF have thousands of pages, so, selecting "All" would crash the backend (sh404SEF is very slow when loading the URLs in the backend).

Unless you intend on fixing these bugs in the code, there's not much you can do to resolve this issue.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Fri Jul 25, 2014 5:31 pm

Thanks for the quick reply.
OK that makes sense.
I am reluctant to play around with sh404SEF, but I'd happily hack away at jNews :)
Do you happen to know the code that I need to modify?

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by itoctopus » Fri Jul 25, 2014 5:41 pm

You will need to check the view.html.php file under the respective view (in the administrator/components/com_jnews folder. Check the view.html.php file of a working view and see what is different (missing).
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Fri Jul 25, 2014 5:43 pm

OK fantastic. Thanks for your help itoctopus!
If I happen to find a fix I will post it here :)
Cheers, John

User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Fri Jul 25, 2014 6:15 pm

Further searching found that this issue cannot be fixed (at least not by me).

It's a limitation built into Joomla according to the developers of jNews >
http://www.joobi.co/support/ticket-supp ... 624&pjid=4

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by itoctopus » Fri Jul 25, 2014 7:49 pm

I'm not so sure about that (that it can't be fixed). Virtually any Joomla setting can be overridden in the code.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by kenmcd » Fri Jul 25, 2014 10:27 pm

 
The J2XML Exporter component for J1.5 included a plug-in which added 500 and 1000 to the display options.
This made it easier to select large numbers of articles, etc. to export.

So that system plug-in could be a good example of how to override that select list.

If you cannot find it on their website I think I have it here somewhere.

 
██ LibreTraining

User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Sat Jul 26, 2014 2:45 pm

Hi Kenmcd,
Thanks I had a look on their website and couldn't find it.I downloaded all the 1.5 and 3x versions and none of the components had any options or changed the list view.
Can you email it to me please? My username @ hotmail thanks :)

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Limit 500 plug-in - files attached

Post by kenmcd » Sat Jul 26, 2014 9:08 pm

 
The good news ... I found it installed on some old testing sites, and there is a J2.5 (J1.7) version too.

But I did not remember everything correctly, it only adds 500 to the limit list selector.
Obviously that number is easy to modify in the plug-in code.


Files are attached below:
plg_system_limit500_j15_1.5.3.2_feb2011.zip
plg_system_limit500_j25_1.7.0.0_feb2011.zip
Note: I did not test installing these. I just zipped-up the files.
But I do expect that they will install without any issues.
There were no language files (I did not comment that out in the J1.7 XML file).

Please come back and report your results so we know if this helped work around the problem.
And attach any updated J2.5 or J3.x plug-in, if any, for others to benefit too.

 
You do not have the required permissions to view the files attached to this post.
Last edited by kenmcd on Sat Jul 26, 2014 9:18 pm, edited 2 times in total.
██ LibreTraining

User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Sat Jul 26, 2014 9:10 pm

Thanks KenMCD,
I'll try these out today and let you know the result.

User avatar
johnvonahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 09, 2011 9:47 am
Location: Melbourne, Australia
Contact:

Re: Display# ALL not working (only shows 20 entries)

Post by johnvonahlen » Thu Jul 31, 2014 2:52 pm

KenMCD - it installs in Joomla! 2.5.14 without any problems.

Works with - sh404SEF
Doesn't work with - RS Membership
Partially works with - JNews (displays 200 subscribers, even though 500 is selected)

Thanks so much for this.
It's not exactly what I was after, but at least a good step in the right direction :)

Cheers, John


Locked

Return to “Performance - Joomla! 2.5”