Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to stop build Top Page

Quote Reply
How to stop build Top Page
i mean i didnt need TOP page(home.html template) building.

because i use enother templates for my main index.html page.

please help to fix links.
Quote Reply
Re: [romanslon] How to stop build Top Page In reply to
You can't. It doesn't use much server resources, so you may as well just leave it 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] How to stop build Top Page In reply to
Andy, i run build all, and its built index.html in my root category. may be i need just fix code in build.pm to stop build it?
Quote Reply
Re: [romanslon] How to stop build Top Page In reply to
In /admin/Links/Build.pm, try changing the build_home routine, with;

Code:
sub build_home {
# ------------------------------------------------------------------
# Generate the home page.
#
# my $cat_db = $DB->table('Category');
# my $link_db = $DB->table('Links');
# $GRAND_TOTAL ||= _grand_total();

# $cat_db->select_options ("ORDER BY $CFG->{build_category_sort}") if ($CFG->{build_category_sort});
# my $sth = $cat_db->select ( { FatherID => 0 } );

# Will get shifted off in print_cat.
# my $root = [{}];
# while (my $cat = $sth->fetchrow_hashref) {
# push @$root, $cat;
# }
# my $cat_list = Links::SiteHTML::display ('print_cat', $root);

# return Links::SiteHTML::display ('home', { #category => $cat_list, category_loop => $root, grand_total => $GRAND_TOTAL });
}

Does that stop it being built? Otherwise its a case of editing npgh-build.cgi, and commenting out the 'build home' calls.

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] How to stop build Top Page In reply to
thanks Andy!

you forgot about admin/nph-build.cgi

need to fix too:

sub _build_home {
# ------------------------------------------------------------------
# Generate the home page.
#
# _time_start();

# my $page = $CFG->{build_root_path} . "/" . $CFG->{build_index};
# $USE_HTML ?
# print "Building <a href='$CFG->{build_root_url}/$CFG->{build_index}' target='_blank'>Home Page</a> ... \n" :
# print "Building Home Page ... \n";

# open (HOME, "> $page") or _cant_open($page, $!);
# print HOME Links::Build::build ('home', {});
# close HOME;
# my $perms = oct ($CFG->{build_file_per});
# chmod ($perms, $page);

# print "Done (", _time_display(), " s)\n\n";
}



works fine:)
Quote Reply
Re: [romanslon] How to stop build Top Page In reply to
Did I forget? Wink

>>>Otherwise its a case of editing npgh-build.cgi, and commenting out the 'build home' calls.
<<<

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] How to stop build Top Page In reply to
looks i not read it.:)

thanks for help!