Hi,
If you look in nph-build.cgi, you could just move the "detailed" page stuff after the normal pages. i.e change:
Code:
# Build Home Page.
$PLG->dispatch('create_home', \&_build_home, {});
# Build New Page.
$PLG->dispatch('create_new', \&_build_new, {});
# Build Cool Page.
$PLG->dispatch('create_cool', \&_build_cool, {});
# Build Ratings Page.
$PLG->dispatch('create_ratings', \&_build_ratings, {});
# Build Detailed Page.
$PLG->dispatch('create_detailed', \&_build_detailed, {});
# Build Category Pages.
$PLG->dispatch('create_category', \&_build_category, {});
..to:
Code:
# Build Home Page.
$PLG->dispatch('create_home', \&_build_home, {});
# Build New Page.
$PLG->dispatch('create_new', \&_build_new, {});
# Build Cool Page.
$PLG->dispatch('create_cool', \&_build_cool, {});
# Build Ratings Page.
$PLG->dispatch('create_ratings', \&_build_ratings, {});
# Build Category Pages.
$PLG->dispatch('create_category', \&_build_category, {});
# Build Detailed Page.
$PLG->dispatch('create_detailed', \&_build_detailed, {});
..and:
Code:
# Build Changed Detailed Page.
$PLG->dispatch('create_detailed_changed', \&_build_detailed, GT::SQL::Condition->new('Links.Timestmp', '>', $time));
# Build Changed Category Pages.
$PLG->dispatch('create_category_changed', \&_build_category, GT::SQL::Condition->new('Timestmp', '>', $time));
..to:
Code:
# Build Changed Category Pages.
$PLG->dispatch('create_category_changed', \&_build_category, GT::SQL::Condition->new('Timestmp', '>', $time));
# Build Changed Detailed Page.
$PLG->dispatch('create_detailed_changed', \&_build_detailed, GT::SQL::Condition->new('Links.Timestmp', '>', $time));
That should make the detailed pages get built AFTER the category (and other pages)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!