Показ 20 популярных статей по количеству просмотров:
$Informationsystem_Controller_Show = new Informationsystem_Controller_Show( Core_Entity::factory('Informationsystem', 1) ); $Informationsystem_Controller_Show ->xsl( Core_Entity::factory('Xsl')->getByName('СписокНовостейНаГлавной') ) ->groupsMode('none') ->itemsForbiddenTags(array('text')) ->group(FALSE) ->limit(20); $Informationsystem_Controller_Show ->informationsystemItems() ->queryBuilder() ->where('informationsystem_items.active', '=', 1) ->clearOrderBy() ->orderBy('informationsystem_items.showed', 'DESC'); $Informationsystem_Controller_Show->show();