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
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
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