Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [garrynz] Remove index.html to show "domain/cat/" in Gossamer Links 3.0.1: Edit Log

Here is the list of edits for this post
Re: [garrynz] Remove index.html to show "domain/cat/" in Gossamer Links 3.0.1
Ok, I am trying to do this with a global and so far have managed to get it done with the category links. I am using yahoo subcats.

remove_category_index

sub {
my $tags = GT::Template->tags;
my $url = $tags->{URL};
$url =~ s/index.html//;
return $url;
}


replace <%URL%> with <%remove_build_index%> in subcategory.html

and

remove_description_index

sub {
my $tags = GT::Template->tags;
my $description = $tags->{Description};
$description =~ s/index.html//g;
return $description;
}

replace <%Description%> with <%remove_description_index%>

Now I am having a bit of trouble with the breadcrumb, any ideas?

Last edited by:

garrynz: Jul 11, 2005, 11:46 AM

Edit Log: