Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Creating a new static page ?

Quote Reply
Creating a new static page ?
I want to build New Template / Page static.

I create a new template "partenaires.html"

I Add in Nph-build.cgi module

# Build partenaires Page.

GT::Plugins->dispatch ("$CFG->{admin_root_path}/Plugins", 'create_partenaires', \&_build_partenaires, {});

and

sub _build_partenaires {

# ------------------------------------------------------------------

# Generate the partenaires page.

#

_time_start();

my $page = $CFG->{build_partenaires_path} . "/" . $CFG->{build_index};

my $url = $CFG->{build_partenaires_url} . "/" . $CFG->{build_index};

$USE_HTML ?

print "Building <a href='$url' target='_blank'>Partenaires</a> ... \n" :

print "Building partenaires ... \n";

($CFG->{build_partenaires_path} =~ m,^$CFG->{build_root_path}/(.*)\s*$,) and _build_dir($1);

open (PAGE, "> $page") or _cant_open($page, $!);

print PAGE Links::Build::build ('partenaires', {});

close PAGE;

my $perms = oct ($CFG->{build_file_per});

chmod ($perms, $page);

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

}

I generate the HTML page and i've got this message A fatal error has occured Debug information at nph-build.cgi line 927.

I obviously messed up somewhereThanks in advance for any help