1
jjcmoney
Formatting story.title in news module
  • 2005/8/8 1:57

  • jjcmoney

  • Just popping in

  • Posts: 34

  • Since: 2003/5/10


Hi everyone,

Can someone point me in the right direction? I'm trying to find out where I can seperate out the topic and article title in the news module main page (..../modules/news/).

It seems like they're bundled together as "story.title" and I can't format them directly in the templates.

I'd like to put the words "Topic:" before the topic, then a line break and then "Article:" before the article name. or maybe eliminate the Topic all together...not sure yet

I just can't figure out yet where to edit.

Thanks!

JC
JC

2
blindman
Re: Formatting story.title in news module
  • 2005/8/8 5:37

  • blindman

  • Not too shy to talk

  • Posts: 119

  • Since: 2005/6/26


Well, it isn't in the template. Try to fix that in article.php in this zone
Quote:
$story['id'] = $storyid;
$story['posttime'] = formatTimestamp($article->published(),$dateformat);
$story['news_title'] = $article->title();
$story['title'] = $article->textlink()." : ".$article->title();
$story['topic_title'] = $article->textlink();


I'm not sure, but I have made about the same changes and I was confused too.
And I think you should have a look at .../modules/news/class/class.newsstory.php for the textlink thing.
Quote:

function textlink()
{
$ret = "<a href='".XOOPS_URL."/modules/news/index.php?storytopic=".$this->topicid()."'>".$this->topic_title()."</a>";
return $ret;
}
Don't follow me. I'm lost too.

Login

Who's Online

172 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits