How can i add category name in links ?

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sat Apr 16, 2011 6:02 pm
I want add category name or date..links part..end of text.How can i do ?


modules/mod_news_pro_gk4/tmpl/layout.parts.php


Code: Select all
   
function lists($config, $news_id, $news_cid, $news_sid, $news_title, $news_text, $odd, $num) {
      if($config['news_short_pages'] > 0) {
            $text = '';
            if($config['show_list_description']) {
                $text = NSP_GK4_Utils::cutText(strip_tags(preg_replace("/{.+?}/", "", $news_text)), $config['list_text_limit'], $config['list_text_limit_type'], '…');
         }
         
         if(JString::strlen($text) > 0) $text = '<p>'.$text.'</p>';
         $title = $news_title;
         $title = NSP_GK4_Utils::cutText($title, $config['list_title_limit'], $config['list_title_limit_type'], '&hellip;');
         if(JString::strlen($title) > 0) $title = '<h4><a href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid, $news_sid)).'" title="'.$news_title.'">'.$title.'</a></h4>';
         // creating rest news list
         return '<li class="'.(($odd == 1) ? 'odd' : 'even').(($num >= $config['links_amount'] * $config['links_columns_amount']) ? ' unvisible' : '').'">'.$title.$text.'</li>';   [color=#ff0000].... HERE....[/color]
      }
   }
User avatar
Fresh Boarder

GK User
Mon Apr 18, 2011 5:06 pm
Nobody ? Pls help..
User avatar
Fresh Boarder

teitbite
Tue Apr 19, 2011 9:52 pm
Hi

You can make it using the settings of this module. Please use %CATEGORY in info details and than set info details to show after text.
User avatar
Moderator

GK User
Wed Apr 20, 2011 12:59 pm
teitbite wrote:Hi

You can make it using the settings of this module. Please use %CATEGORY in info details and than set info details to show after text.



You did'nt understand me..i know that setting.. i'am using very good GK News Show Pro4. My want; put in "Links Layout" section end of description text not article layout.
Look picture pls..


Image
User avatar
Fresh Boarder

teitbite
Wed Apr 20, 2011 10:34 pm
Hi

Sure it's possible, unfortunately to add it in this place some code changes must be done to the module. Unfortunately we do not support this.

But if You need this than I can do it in my private time for a little fee. Just mail me.
User avatar
Moderator


cron