Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to show NEW links for each sub Categories

Quote Reply
How to show NEW links for each sub Categories
Hi,

Is there any solutions for modify the home.html and category.html template to show NEW links in each sub-categories ?

Thanks

TheFox

Quote Reply
Re: How to show NEW links for each sub Categories In reply to
Do you mean show the actual LINKS themselves, or just a 'New' graphic/text to tell people that there are new links in those categories?

All the best
Shaun

Quote Reply
Re: How to show NEW links for each sub Categories In reply to
Yes, I mean show the actual links .

TheFox

Quote Reply
Re: How to show NEW links for each sub Categories In reply to
Anyone Help?

TheFox

Quote Reply
Re: How to show NEW links for each sub Categories In reply to
How about creating a new global using......

sub {
my $vals = shift;
my $link_db = $DB->table ('Links');
$link_db->select_options ('ORDER BY Add_Date DESC');
my $sth = $db->select ( { isNew => 'Yes', isValidated => 'Yes' }, ['Add_Date', 'COUNT(*)'] );
my $output = '';
while (my $link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display('link', $link);
}
return $output;
}



Not 100% sure it will work but it should.


Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: How to show NEW links for each sub Categories In reply to
It's not work, it show the new links, But I need to show New links separate for each sub Categories under parent Categories.

TheFox

Quote Reply
Re: How to show NEW links for each sub Categories In reply to
How about modifying the sub that builds the whats new page - that builds the new links under their relevant categories.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: How to show NEW links for each sub Categories In reply to
I think the best way is using the template_globals and a New Template. But I don't know how to create a new template and template_globals, that can showing new links for specify categories.

Anyone Help??

TheFox


Quote Reply
Re: How to show NEW links for each sub Categories In reply to
Need Help ! Please !

TheFox