1
exbanious
News customization index view
  • 2005/3/8 19:05

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


I am trying to create a custom index page in news 1.2 that shows something like "more articles in: (topic)".
I have created a new function that will show this, but when it is showing more than one topic, like when you first arrive on the site, it shows whatever topic the first story in the index is.

really all i need is an "if" statement that
says: "if showing only one topic"
nothing that i have tried has worked correctly.

i need something like:

Quote:

function showTopicInIndex()
{
if ( some argument ){
$also = "<b>Also in ".$this->newstopic->topic_title(). "..." . '</b>';
}
else {
$also = "<b>Latest Articles...</b>";
}
return $also;
}


i'm assuming that when the module first loads it is pulling all information from "getAllPublished", but i'm not sure how to incorporate that into the new function.

as you might have guessed, i'm not much of a programmer, this is the best i could come up with. Am i going about this all wrong?

Login

Who's Online

109 user(s) are online (48 user(s) are browsing Support Forums)


Members: 0


Guests: 109


more...

Donat-O-Meter

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

Latest GitHub Commits