Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Category name!

Quote Reply
Category name!
To remove Home of the name of the categories!

Alex, as I make so that in the result of a search he does not appear link for HOME in link of the categories, I want that it appears only the name of the category without the Home in the front example:

it is thus:
Home : Health and Beauty : Cosmetics : Nail Care

I want that it is thus:
Health and Beauty : Cosmetics : Nail Care

already I looked in scripts all and I where did not find to modify. in search.cgi I found only the place where writes links of the categories in the reply pages.

In Search.cgi
In Reply To:
# Join the link results by category if we are grouping.
if ($CFG->{build_search_gb}) {
foreach my $cat (sort keys %link_output) {
$link_results .= "<p>" . Links::Build::build ('title_linked', { name => $cat, complete => 1 }) . $link_output{$cat};
}
}
but meeting where I do not remove the Home name of the name of the categories.



For a better world.Cool
http://www.janio.com.br
Quote Reply
Re: Category name! In reply to
You would want to look in Links/Build.pm in sub build_linked_title.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Category name! In reply to
Alex,

To that point, a possible enhancement for the next release. Why not allow people to choose the word used for their high-level link in the globals, just like the site title?

It currently uses - Home: More: And More
Some may prefer - Top: More: And More

On my site "Home" is generally viewed as my Home Page - all the way at the top! It would be nice if you could set a global called: "Links", or whatever you prefer, and get the breadcrumbs to build - Links: More: And More

Obviously not a bug- just an Information Architecture enhancement. Smile

Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Category name! In reply to
You can do this right now by going to Build->User Language and under the Links menu. =)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Category name! In reply to
Ha! Never looked at all those settings before. Good job - Thanks Alex.

Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Category name! In reply to
After to modify any library in links twirling with mod_perl, must restart the apache.

For a better world.Cool
http://www.janio.com.br
Quote Reply
Re: Category name! In reply to
Ok.. Alex and as I make to place < %title_linked% > with the name of the previous category the presented one.

example:
Home > Arts > Museums, Galleries, and Centers

I want that it only appears:
Home > Arts >

E if the category will be [Home > Arts >] want that it appears only [Home].

How I make this?




For a better world.Cool
http://www.janio.com.br
Quote Reply
Re: Category name! In reply to
Hi,

Again, if you want to change that, you would need to modify the subroutine directly, or make a plugin that overrides it (which is preferable as then your change won't be lost when upgrading).

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Category name! In reply to
E where I modify this sub routine?

For a better world.Cool
http://www.janio.com.br
Quote Reply
Re: Category name! In reply to
The file is Links/Build.pm and the subroutine is build_linked_title.

Cheers,

Alex

--
Gossamer Threads Inc.