Gossamer Forum
Home : Products : Links 2.0 : Customization :

rename homepage

Quote Reply
rename homepage
When it builds I want to rename my homepage for example:
mydomain.com/index.html is the original way
the renamed way:
mydomain.com/index2.html

All help is appreciated
Thanks
Quote Reply
Re: [incik] rename homepage In reply to
take a look into links.cfg and find

Code:
# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 0.03; # Top 3%
# Number of days a link is considered New.
$db_new_cutoff = 4; # 4 days old.
# Return search results bolded (1 = yes, 0 = no).
$search_bold = 1;
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

this will do what u want

bye

Gregor
Quote Reply
Re: [sc2utp] rename homepage In reply to
I'm familiar with this but wont that change it for all the categories and subcategories as well ?

Cause I only want to rename the homepage index file not for the rest of the categories.

Please let me know.

Thanks
Quote Reply
Re: [incik] rename homepage In reply to
i'm not sure but i dont think so .. at least you can try and then switch it back if it won't work ..

Gregor
Quote Reply
Re: [sc2utp] rename homepage In reply to
it didnt work
Quote Reply
Re: [incik] rename homepage In reply to
hmm i'm sorry my knowledge stops here .. perhaps any of guru here will help you with this ..

bye


Gregor
Quote Reply
Re: [incik] rename homepage In reply to
In links.cfg insert

Code:
$build_home_index = "index2.html";
Then, in nph-build.cgi (in the sub "build_home_page"), replace

Code:
open (HOME, ">$build_root_path/$build_index") or &cgierr ("unable to open home page: $build_root_path/$build_index. Reason: $!");

with

Code:
open (HOME, ">$build_root_path/$build_home_index") or &cgierr ("unable to open home page: $build_root_path/$build_home_index. Reason: $!");
That should do the job.


Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] rename homepage In reply to
THANKS for that info - i was looking for a solution to change just the home page from index.html to index.shmtl so that i could allow SSI to work

so cheers



2 slight / very minor extra points to that mod - just to make it perfect:

again in nph-build.cgi (and in the sub "build_home_page"),

also find:
Code:


print "\tOpening page: $build_root_path/$build_index\n";


and replace it with:
Code:
print "\tOpening page: $build_root_path/$build_home_index\n";




and further up the page find sub "build_all"
then find "# Create Home Page"
and change:
Code:
print qq|Building <A HREF="$build_root_url/$build_index">Home Pages</A> . . .\n| :


to:
Code:
print qq|Building <A HREF="$build_root_url/$build_home_index">Home Pages</A> . . .\n| :




pedantic changes - but makes sure that the right info is displayed on the page informing you about the build.

hopefully this might help someone else sometime