I love the idea to build the detailed pages just in the directory where they belong.
So i have changed the dir to %Path% / %ID% (Path is a new field for Category);
this would be perfect as long i would have all links only in one cat.
But i have some more dimensions to save my links.
Now i have added another field "detail" to Category with {0|1}
New York
Paris
London
are the main cats with detail = 1
each link is also in cats:
dogs or cats (detail = 0)
but my pets are never in more than one city!
I want to have the detailed pages beneath the cities.
Now i need a change in
nph-build.cgi
print "Building Detailed pages...\n";
# Only build validated links
$cond ||= GT::SQL::Condition->new;
$cond->add(VIEWABLE);
# Loop through, building 1000 at a time
my ($limit, $offset, $count, $second_pass) = (1000, 0, 0);
my $rel = $DB->table(qw/Links CatLinks Category/);
print "\t";
my $Links = $DB->table('Links');
while () {
Is this query only from Links or also from CatLinks, Category, because of $rel?
Then i just add another $cond?
So i have changed the dir to %Path% / %ID% (Path is a new field for Category);
this would be perfect as long i would have all links only in one cat.
But i have some more dimensions to save my links.
Now i have added another field "detail" to Category with {0|1}
New York
Paris
London
are the main cats with detail = 1
each link is also in cats:
dogs or cats (detail = 0)
but my pets are never in more than one city!
I want to have the detailed pages beneath the cities.
Now i need a change in
nph-build.cgi
print "Building Detailed pages...\n";
# Only build validated links
$cond ||= GT::SQL::Condition->new;
$cond->add(VIEWABLE);
# Loop through, building 1000 at a time
my ($limit, $offset, $count, $second_pass) = (1000, 0, 0);
my $rel = $DB->table(qw/Links CatLinks Category/);
print "\t";
my $Links = $DB->table('Links');
while () {
Is this query only from Links or also from CatLinks, Category, because of $rel?
Then i just add another $cond?