Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

how does option new works in span mode?

Quote Reply
how does option new works in span mode?
Hello all,

In links.pm i have set:
$LINKS{build_new_cutoff} = 14;/
$LINKS{build_span_pages} = 1;


So if i look at the new page it will show dates (because i turn the span mode on).

My question is:
Will the dates, showed on new page, only display the last 14 days because i set {build_new_cutoff} = 14 or
is the variable {build_new_cutoff} = 14 only used if i don't use span mode ?

Beside the above i am thinking to turn the span mode on and mod the new page so it will only display the links off the last 14 days. But i just wanna know how it works.

Allready thanks.


Quote Reply
Re: how does option new works in span mode? In reply to
This is what they're used for in my understanding:

$LINKS{build_new_cutoff} - No. of days to show new links for (i.e.; last 14 days of additions)

$LINKS{build_span_pages} - Used when running nph-build.cgi to re-build CATEGORY pages. Span pages if the no. of links in a single category is more than $LINKS{build_links_per_page}

Does that help?

Quote Reply
Re: how does option new works in span mode? In reply to
Thanks qango.

Well $LINKS{build_span_pages} is also used for the new page that was my problem. I want span on and new links not 'spanned'.

But it was easy to mod it in nph-build.cgi

sub build_new_page i mod 3 times the code:

($LINKS{build_span_pages}) to:

(!$LINKS{build_span_pages})

That was it.

Regards Startpoint.