Home Blog The CMS Joomla! Sort items by date of publication or date of creation
Sunday, 19 February 2012 03:53

Joomla! Sort items by date of publication or date of creation

Written by  Administrator
Rate this item
(1 Vote)

Make sure that menu Parameters (Advanced) are set as:

Category Order: No Order by Primary Order Only
Primary Order: Most Recent First

 

Open file .../components/com_content/helpers/query.php.

Change the following, about line 50.

function orderbySecondary($orderby)
{
switch ($orderby)
{
case 'date' :
$orderby = 'a.created';
break;

case 'rdate' :
$orderby = 'a.created DESC';
break;

Change value underlined in:

function orderbySecondary($orderby)
{
switch ($orderby)
{
case 'date' :
$orderby = 'a.publish_up';
break;

case 'rdate' :
$orderby = 'a.publish_up DESC';
break;
Last modified on Sunday, 19 February 2012 04:29
More in this category: « Content Layouts

Leave a comment

Make sure you enter the (*) required information where indicated.
Basic HTML code is allowed.

We strive to provide 5 stars services.

web services 5 stars customer rating

click here to read the reviews!

Some Web Site Design

  • Professional Design targeted to your specific industry

  • Included Content Management System (CMS) for you to easy edit your website

  • SEO Compliant Websites KeyWords Analysis and Strategy

  • Choose From Over 20000 Designs so you get the website of your choice

  • No Monthly Fees

  • Search Engine & Local Directory Submission

  • Google Analytics Tutorial to learn how to track your website's progress

  • 24/7 Email Support from experts who are always available to help you

  • On-Line Store to set up your Online business

  • Secure Payments. iDeal, Pay Pal, Bank Transfer, Credit Card.


Get your website done! Just contact us for a free quotation!

SitoMaestro works with ...
Services