default list limit
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.
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.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Mon Apr 18, 2011 9:07 am
default list limit
Hi,
I would like to set the default list limit in joomla global configuration -> site settings to All but the highest option is 100. (I want to have displayed all the articles, all the categories, all the modules, etc. and switching each time can be annoying after a while).
What file needs to be modified in order to get my desired result?
Kind regards,
Alex
I would like to set the default list limit in joomla global configuration -> site settings to All but the highest option is 100. (I want to have displayed all the articles, all the categories, all the modules, etc. and switching each time can be annoying after a while).
What file needs to be modified in order to get my desired result?
Kind regards,
Alex
-
- Joomla! Explorer
- Posts: 411
- Joined: Fri Nov 04, 2011 6:30 pm
- Location: Stockholm
- Contact:
Re: default list limit
In administrator/components/com_config/models/forms/application.xml
you have
You could add a new option with a value like 10000......
you have
Code: Select all
<field
name="list_limit"
type="list"
default="20"
label="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL"
description="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC"
filter="integer">
<option
value="5">J5</option>
<option
value="10">J10</option>
<option
value="15">J15</option>
<option
value="20">J20</option>
<option
value="25">J25</option>
<option
value="30">J30</option>
<option
value="50">J50</option>
<option
value="100">J100</option>
</field>
You want replies? Search the forum. Most questions have been anserd many times. If not; what have you done, what do you want to do, what have you tried? Be clear and explicit!
----
ToolGeeks, handicrafts and tools community: http://www.toolgeeks.net
----
ToolGeeks, handicrafts and tools community: http://www.toolgeeks.net
-
- Joomla! Apprentice
- Posts: 20
- Joined: Mon Apr 18, 2011 9:07 am
Re: default list limit
Thanks for help.
Got it.
Kind regards,
Alex
Got it.
Kind regards,
Alex
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed Jan 27, 2010 9:44 pm
Re: default list limit
mmm, i could do with some help with this, i added an extra line
<option
value="1000">J1000</option>
</field>
and also added a line in the administrator/ languages / en-GB / en-GB.ini
J1000="1000"
and nothing changes in the backend to be able to select a 1000
i am using Joomla! 2.5.9
any help appreciated, as i have to sort out 7500 car listings and not practical to change them 100 at a time? but all just times out
<option
value="1000">J1000</option>
</field>
and also added a line in the administrator/ languages / en-GB / en-GB.ini
J1000="1000"
and nothing changes in the backend to be able to select a 1000
i am using Joomla! 2.5.9
any help appreciated, as i have to sort out 7500 car listings and not practical to change them 100 at a time? but all just times out
-
- Joomla! Guru
- Posts: 529
- Joined: Fri Oct 21, 2011 2:04 pm
Re: default list limit
Did you remove the </field> that is already in there?
You should have:
and not
You should have:
Code: Select all
<option
value="50">J50</option>
<option
value="100">J100</option>
<option
value="1000">J1000</option>
</field>
Code: Select all
<option
value="50">J50</option>
<option
value="100">J100</option>
</field>
<option
value="1000">J1000</option>
</field>
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed Jan 27, 2010 9:44 pm
Re: default list limit
hello
yes i have it as this
yes i have it as this
Code: Select all
<field
name="list_limit"
type="list"
default="20"
label="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL"
description="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC"
filter="integer">
<option
value="5">J5</option>
<option
value="10">J10</option>
<option
value="15">J15</option>
<option
value="20">J20</option>
<option
value="25">J25</option>
<option
value="30">J30</option>
<option
value="50">J50</option>
<option
value="100">J100</option>
<option
value="1000">J1000</option>
</field>
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sun Jul 12, 2009 12:06 am
Re: default list limit
As to hacking the core files to enable an "All" list-length option, it's as simple as adding an option to the (Joomla 3.x) Admin com_config/models/forms/application.xml file.
REMEMBER TO BACK UP ANY FILE YOU MODIFY SO THAT YOU CAN (hopefully) UNDO ANY CHANGES THAT LEAD TO A CATASTROPHE
AT about line 675, change:
To:
The "J" values are to be found in the administrator/languages/[your preferred language]/language-LANGUAGE.ini (i.e.: en-GB.ini). I haven't tried, and don't recommend, adding custom values to this file --- the value for JALL already exists.
After this, simply navigate to Global Configuration in the Admin Control Panel, choose "All" for your list length, save and close. The option is saved to configuration.php in the root folder and you're gold, at least until a core update wipes out your changes...
REMEMBER TO BACK UP ANY FILE YOU MODIFY SO THAT YOU CAN (hopefully) UNDO ANY CHANGES THAT LEAD TO A CATASTROPHE
AT about line 675, change:
Code: Select all
<field
name="list_limit"
type="list"
default="20"
label="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL"
description="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC"
filter="integer">
<option
value="5">J5</option>
<option
value="10">J10</option>
<option
value="15">J15</option>
<option
value="20">J20</option>
<option
value="25">J25</option>
<option
value="30">J30</option>
<option
value="50">J50</option>
<option
value="100">J100</option>
</field>
Code: Select all
<field
name="list_limit"
type="list"
default="20"
label="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL"
description="COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC"
filter="integer">
<option
value="5">J5</option>
<option
value="10">J10</option>
<option
value="15">J15</option>
<option
value="20">J20</option>
<option
value="25">J25</option>
<option
value="30">J30</option>
<option
value="50">J50</option>
<option
value="100">J100</option>
<option
value="100">JALL</option>
</field>
After this, simply navigate to Global Configuration in the Admin Control Panel, choose "All" for your list length, save and close. The option is saved to configuration.php in the root folder and you're gold, at least until a core update wipes out your changes...
-
- Joomla! Enthusiast
- Posts: 139
- Joined: Wed Feb 08, 2012 8:37 pm
Re: default list limit
Is this correct? Are you sure you don't mean<option value="100">JALL</option>
Code: Select all
<option value="All">JALL</option>
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sun Jul 12, 2009 12:06 am
Re: default list limit
I'm a boob! You are correct. I was cutting and pasting stuff so fast I didn't have time to make the proper changes. The second of your code snippets is what actually made it into my own file...
-
- Joomla! Apprentice
- Posts: 16
- Joined: Thu Jan 08, 2009 2:42 am
Re: default list limit
This doesn't appear to work for me in Joomla 2.5.27
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Jun 15, 2011 9:32 pm
- Contact:
Re: default list limit
Still works in Joomla v3.8.10 ... but the file is now here:
administrator/components/com_config/model/form/application.xml
(not ...models/forms/...)
administrator/components/com_config/model/form/application.xml
(not ...models/forms/...)