Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [yogi] How to link to site.com/cat/ instead of cat/index.html?: Edit Log

Here is the list of edits for this post
Re: [yogi] How to link to site.com/cat/ instead of cat/index.html?
-- I've edited my long message of code because I figured it out. --

I've added a "template global" named "remove_build_index" and have added the code you said above:

Code:
sub {
my $string = shift;
$string =~ s,$CFG->{build_index}",",g;
return $string;
}


Then I used it in home.html as a test: replacing <%category%> with
<%remove_build_index($category)%>
It has worked great! No more index.html, just linking directly to the directory! Later today I'll be doing that to all variables to remove the index file.

Thanks yogi!

Last edited by:

MrSteve: Jan 24, 2003, 7:27 AM

Edit Log: