Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Detailed View

Quote Reply
Detailed View
I never know where to post - here or the beta forum Smile

Anyway, I would like some help with customising the detailed view feature of 2.0b3. Similar to my other posting, would it be possible to only build the detailed view pages based on this:

Quote:
sub site_html_detailed {
# --------------------------------------------------------
# This routine will build a single page per link. It's only
# really useful if you have a long review for each link --
# or more information then can be displayed in a summary.
#

my %rec = @_;

if ($rec{'Member Status'} eq "Full") { $output = qq~

HTML Output Goese here!

~;
}
return $output;
}

OK, this is what I am using - and it works. Basically it will only create the detailed view pages if a site is a full member, or if ($rec{'Member Status'} eq "Full" - what would happen though, if I wished these pages to be built when the member status was either Full or Premier - leaving Associate members with a blank page ? Is there a way to do this ?

I didn't write this very well, but hopefully you'll get the idea of what i'm trying to ask Smile

Cheers!

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com
Quote Reply
Re: Detailed View In reply to
Hi Craig,

In nph-build.cgi around line 465 in build_detailed_view add:

%rec = &array_to_hash (0, @values);
next LINE unless ($rec{'Member Status'} eq 'Full'); # Add me!

If you try to do it in site_html.pl, the page will still be generated, but it will be blank.

Hope this helps,

Alex
Quote Reply
Re: Detailed View In reply to
You need to be modifying nph-build not site_html



------------------
Quote Reply
Re: Detailed View In reply to
Thanks - that works great! But how would I change it so that it builds the page if Member Status = Full or Premier ?

Cheers Smile

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com
Quote Reply
Re: Detailed View In reply to
 
Quote:
%rec = &array_to_hash (0, @values);
next LINE unless (($rec{'Member Status'} eq 'Full') or ($rec{'Member Status'} eq 'Premier')); # Add me!

That should work.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/