Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem w/ Upgrade- Multi Detail pages not working

Quote Reply
Problem w/ Upgrade- Multi Detail pages not working
Hi:

I just upgraded to 2.2, and now my method of using multiple detail pages no longer works. Basically, I split a lot of my data onto a couple different detail pages, and use p=x to pass which detail page to use.

I had this all set up in a plug in, and that just does not work at all anymore. I went into siteHTML.pm and just edited it in there (I HAVE to make this work!), but even that does not work. The code is VERY simple, I cannot figure out why it does not work. Here is what I put in at the end of SiteHTML.pm

Quote:

if ($rec->{'p'} eq 'n') {
my $output = Links::user_page ('det_notes.html', $rec, $opts);
return $output;
}
elsif ($rec->{'p'} eq 'c') {
my $output = Links::user_page ('det_crew.html', $rec, $opts);
return $output;
}
elsif ($rec->{'p'} eq 's') {
my $output = Links::user_page ('det_synopsis.html', $rec, $opts);
return $output;
}
elsif ($rec->{'p'} eq 'r') {
my $output = Links::user_page ('det_review.html', $rec, $opts);
return $output;
}
else {
my $output = Links::user_page ('detailed.html', $rec, $opts);
return $output;
}


no matter what I do, all I ever get is the detailed.html template... as if "p" is not getting passed to the script.

Any ideas?

Thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Problem w/ Upgrade- Multi Detail pages not working In reply to
Whoops- meant this for Links Discussions, not Forum Discussions- please move!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Problem w/ Upgrade- Multi Detail pages not working In reply to
Finally got it! The $p variable was not being passed through Build.pm. I added something to pass that variable, and viola!- it works!
dave

Big Cartoon DataBase
Big Comic Book DataBase