Sunday 20 March 2005 11:38:17 pm
Hi Marko,
1. Configure settings/cronjob.ini
Add the following line: Scripts[]=updateviewcount.php
2. Configure settings/logfile.ini
[AccessLogFileSettings]
#Where could find the apache log
#Example StorageDir=/var/log/httpd/
StorageDir=
#Example LogFileName=test.ezpublish.no LogFileName= Template example of fetch top 10 most popular articles in section 1 ( article class id is 2 )
{let view_list=fetch('content','view_top_list',hash(section_id,1,class_id,2,limit,10,offset,0))}
{section show=$view_list}
{section name=ViewList loop=$view_list sequence=array(bglight,bgdark)}
<a href={concat("/content/view/full/",$ViewList:item.node_id)|ezurl}>
{$ViewList:item.name}
</a><br />
{/section}
{/section}
{/let}
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|