1
dewall
Presentation of category in news item
  • 2005/2/20 12:48

  • dewall

  • Just popping in

  • Posts: 14

  • Since: 2005/1/28


I would like to change the way the news module presents news. Default is that the category comes to the left of the news title. I would like to be able to change that and move the category to the right. I have looked through the forums but can not figure out how to acomplish this.

Does anyone know how to do this?

Kind regards
Gus

2
QLQ_QLQ
Re: Presentation of category in news item
  • 2005/2/20 14:54

  • QLQ_QLQ

  • Just popping in

  • Posts: 6

  • Since: 2004/10/16


Hi dewall

I think you can find this code in the file of html\modules\news\index.php

......

$story['title'] = $sarray[$i]->textlink().'&nbsp;:&nbsp;'."<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";
$story['hits'] = $sarray[$i]->counter();
// The line below can be used to display a Permanent Link image
// $story['title'] .= "&nbsp;&nbsp;<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'><img src='".XOOPS_URL."/modules/news/images/x.gif' alt='Permanent Link' /></a>";
......

you can change this code

$story['title'] = $sarray[$i]->textlink().'&nbsp;:&nbsp;'."<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";

like here

$story['title'] = "<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>".$sarray[$i]->textlink();

good luck !