Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Building Category Pages only

Quote Reply
Building Category Pages only
Is there a way I could just re build the category pages without re-building the detail pages.
or
build the category pages first, then the detail pages.

I'm having problems completing a build-all
Quote Reply
Re: [Sies] Building Category Pages only In reply to
Hi,

Why not do Build Staggered? :)

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!
Quote Reply
Re: [Andy] Building Category Pages only In reply to
Beacuse it doesn't complete the build.
Can I comment out the build detail page section in nph-build.cgi?
Quote Reply
Re: [Sies] Building Category Pages only In reply to
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!
Quote Reply
Re: [Andy] Building Category Pages only In reply to
I understand what you mean, but I don't see any difference in your your example.
The from and to looks the same
Quote Reply
Re: [Sies] Building Category Pages only In reply to
The build_detailed routines are moved further down ;) Trust me - there are changes there =)

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!
Quote Reply
Re: [Andy] Building Category Pages only In reply to
Why not just comment out the build detailed routines?
Quote Reply
Re: [Alba] Building Category Pages only In reply to
Could do - guess I forgot to ask if he was using detailed pages <G>

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!
Quote Reply
Re: [Andy] Building Category Pages only In reply to
Missed the start of the thread... must have clicked through a link that took me to the last couple of messages.

If the staggered build is not completing, then it was something to do with lowering the child numbers in the script... there is a thread somewhere with the information. (sorry, going out now or I would have searched for it)
Quote Reply
Re: [Alba] Building Category Pages only In reply to
Hi,

I think you are thinking of nph-verify.cgi - as that uses "child processes" - not the build process :)

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!
Quote Reply
Re: [Andy] Building Category Pages only In reply to
Found it.

The answer to the build_all and build_staggered failing to build all the pages is in this post:
http://www.gossamer-threads.com/...nks_P303439/#p303439