Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Building second home page ?

Quote Reply
Building second home page ?
I want to build a second home page in another folder (only the home page nothing else)

heres the test folder I want to build it in

/home/public_html/testing123

I looked at the nph-build.cgi and tried adding this line in the sub build_all section

# Build Second Home Page.
GT::Plugins->dispatch ("/home/public_html/testing123/Plugins", 'create_home', \&_build_home, {});


But this didnt work

What do I need to modify for this to work ?
Quote Reply
Re: [incik] Building second home page ? In reply to
nevermind I figured it out myself

Wink
Quote Reply
Re: [incik] Building second home page ? In reply to
Could please let us know how did you do this

Thanks in advance.
Quote Reply
Re: [cassandra] Building second home page ? In reply to
edit nph-build.cgi file

copy and make a second field sub _build_home and rename it to sub _build_second_home on the line in that field:

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

"/" this is where it builds the main home page just rename it to the directory you want it to build into

like this "/cars" or whatever way your directory is set up

then for the build fields add:

# Build Second Home Page.
GT::Plugins->dispatch ("$CFG->{admin_root_path}/Plugins", 'create_home', \&_build_second_home, {});

add that line below the:

# Build Home Page. field

thats it