thank;
i found how to create a new Method in gk.source.k2.php
- Code: Select all
// Method to get default K2 Category Image
function getK2CategoryImage($idCat) {
//
$db = JFactory::getDBO();
// creating SQL query
$query_news = '
SELECT id,
image,
alias
FROM #__k2_categories
WHERE id = ' . $idCat ;
// run SQL query
$db->setQuery($query_news);
// when exist some results
if($counters = $db->loadObjectList()) {
// generating tables of news data
foreach($counters as $item) {
$result['catImage_'.$item->id] = $item->image;
}
}
return $result;
then i found how to modify hrlper.php in order to return my result (with array push function)
i just have to edit and customize layout.parts.php.
I have done it for custom div class and add special css style on specific article (like 'news' when article published within the last 6 days)
not easy, but it will works
http://www.petitbidou.fr/blog_new/