Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Displaying Links on new.html

Quote Reply
Displaying Links on new.html
Hello!
I have gone thru the forum and cant find anything specific to what i need.

On my new.html page I want the links to all be displayed under their category on that page and not have the dates displayed and then have to click on the dates to get the links for that day.
I hope that made sense. :) Is there a way to do this?

Thanks in advance for any replies Wink
Quote Reply
Re: [michellebytes] Displaying Links on new.html In reply to
Erm ... Michelle,

You should maybe clarify this a bit better ...

Quote:

... not have the dates displayed and then have to click on the dates ...


Cheers,
Shaun
Quote Reply
Re: [qango] Displaying Links on new.html In reply to
Your right...that was a terrible description, I've had sleep now so will try again.... Smile

After i validate new links and then build - the new.html page shows the dates of the new links

eg: Monday 1 January (4 links)
Tuesday 2 Jan (5 links) etc - click on these dates to get the new links for that day.

i want it to show just the new links and no dates

I hope that makes better sense :)
Quote Reply
Re: [michellebytes] Displaying Links on new.html In reply to
The option which controls this is in Setup => Build Options => build_span_pages. However, this option also controls how paging is handled in categories as well. I'll have to add it to my todo list to separate this into two options.

Adrian
Quote Reply
Re: [brewt] Displaying Links on new.html In reply to
This added option will be available in the next release.

Adrian
Quote Reply
Re: [brewt] Displaying Links on new.html In reply to
Hi,
you can use the following global.
It displays all new links. There is no date but you dont have to click on the datelinks.
Just call the global in a new template and you have a new links page with all (change 50 to what you need) the links

Code:
sub {
# Displays the Newest links.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY ADD_DATE DESC Limit 50');
$sth = $search_db->select ( { isNew => 'Yes'});
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}
Matthias

Matthias
gpaed.de