Gossamer Forum
Quote Reply
Build_Detail once
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?
Subject Author Views Date
Thread Build_Detail once Robert 6243 Oct 12, 2017, 6:30 AM
Thread Re: [Robert] Build_Detail once
el noe 5981 Oct 12, 2017, 8:50 AM
Thread Re: [el noe] Build_Detail once
Robert 5975 Oct 12, 2017, 9:56 AM
Thread Re: [Robert] Build_Detail once
el noe 5968 Oct 12, 2017, 10:18 AM
Thread Re: [el noe] Build_Detail once
Robert 5927 Oct 13, 2017, 12:48 AM
Post Re: [Robert] Build_Detail once
el noe 5896 Oct 13, 2017, 5:26 AM