Topic: Showing most viewed articles

I am trying to include my most viewed articles, can not get it to work...

$sort = array('views', 'DESC');
include('../cms/show_news.php');

doesn't work for me

Re: Showing most viewed articles

At the moment the functionality is not implemented. To sort articles you should take the following steps:
Sorting parameters should be set as

  $sortby = 'title';  // title, tg, author supported yet
  $dir = 'D';         // D - desc, A - asc
  include 'content/show_news.php';

  The functionality is prepared for the release and it will be rolled out with the next release. Also, the new sorting type will be introduced:vcnt
  i.e. sorting by the number of views

Best regards,
CN Support team