--= Login Here =--  --= Main Page =--  --= Search =--  --= Contact =--  --= Content =--
 --= Search =--
 --= Main Page =--
 --= Contact =--
 --= Login Here =--
 --= Content =--
Main Menu
Home
Web Links
Downloads
News
Articles
FAQs
Legal
Products
Product II
MamboToys.com
Webraydian News
Login Form





Lost Password?
No account yet? Register
How do i change the limit boxes default value? PDF Print E-mail
Written by Webray   
Tuesday, 19 October 2004
 
 
Mambo 4.5.0 ONLY 
 
 
This FAQ will show you how to change the default value for content item display. The default value is 10.
 
In the components/com_content directory you'll find the content.php file. On about line # 132 is this line:

$limit = trim( mosGetParam( $_REQUEST, 'limit', 10 ) );
 
change it to match the line below:
$limit = trim( mosGetParam( $_REQUEST, 'limit', 20 ) );
 
...or change 20 in the line above to whatever you like.
 
This will adjust the default value of 10 items to whatever you set as the value in the line above. If you did a copy and paste of the line above, then your new default value will be 20 items.
 

 
 
Last Updated ( Saturday, 03 December 2005 )
 
Sunday, 23 November 2008
   --= Login Here =--  --= Main Page =--  --= Search =--  --= Contact =--  --= Content =--
© Copyright 2005 by Webraydian.com