PDA

View Full Version : latest news on article page


apocan
05-20-2007, 10:42 AM
cant we add latest news with small abstract images (or possible it can be without) on article full page?

maybe most read and most commented is useful but I think there must be a latest news part in article full page on the right column... yes the latest news are at the bottom of the page but lets do sometnihg for the right column...

can anyone do?

(please dont give a link from custom blocks because I didnt understand anytihng on that page)

utvara
05-21-2007, 09:23 AM
Here is box latest news:


$article_list = new Article_list();
$article_list->search(array('a.status' => 1, 'a.created' => $cur_date, 'a.featured_news'=> '0' ), 'order_desc', 'descending', $latest_news_number, 0);

$box_latest_news_HTML = HTML_article_list(
$article_list,
'box_article_list.tpl',
array('BOX_TITLE' => $latest_news_title, 'BOX_ID' => 'box_article_list'),
'article_title.tpl',
array('image_width' => $latest_news_image_width, 'word_number' => $latest_news_word_number, 'columns' => $frontend_latest_news_columns)
);

$template_manager->assign($box_latest_news_HTML,'/{BOX_LATEST_NEWS}/');


This code should go to include/box_definitions.php

utvara

apocan
05-28-2007, 10:10 AM
I did this but it doesnt work as ı want. look at the picture. after 3 title there is a line. how can it be without it or maybe there can be lines after every title... and cant we show abstract images?

http://img80.imageshack.us/img80/1207/trshfdv2.jpg

apocan
05-29-2007, 04:37 PM
any idea?I put this to site but it doesnt look like nice..