Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Category Links: New Page <-> Search Results

Quote Reply
Category Links: New Page <-> Search Results
Hi,

what would I have to do to get the category links on the new links page look like the ones on the search results page?

At the moment when I group the new links by category the category links look like

Countries/Europe/Germany
(being one link pointing to the Germany category)

and the category links on the search results page look like

Countries : Europe : Germany

where each category is a link itself, so that a user can jump to each directly (e.g. to Countries or to Europe etc.)

I would like to have the search-result-way of linking categories on my new links page, too.

Any ideas anyone?

Andreas

--------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
Hi,

Edit Links/Build.pm line 248 and change:

my $clean = $cat_db->as_url ($name);
$out .= qq|<p><a href="$CFG->{build_root_url}/$clean/$CFG->{build_index}">$name</a></p>\n|;

to:

$out .= build ('title_linked', $name);

I'll make this change in the next version.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
Hi Alex,

thank you.
The categories are now linked like I wanted them to, but ... unfortunately it is not exactly the perfect solution.
Now each category is linked except the last one, and that's the category containing the displayed links. So users can jump to each category except the one where the displayed link is actually in.
On the search results page the categories are linked the same way, including the last one which contains the displayed links...

So there seems to bee another routine that builds the linked categories for the search results page. Couldn't that one be used instead?

Regards
Andreas

--------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
When alex adds this, he'll have to merge the two routines.

In search, you are "in" the last category, so it doesn't pay to link it.

But, from the other menus, you would want to link each portion, to get there.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
In Reply To:
In search, you are "in" the last category, so it doesn't pay to link it.
I'm not quite sure if I understand that right.
When I do a global search (i.e. not search only current category), I am not "in" the last category (?).
Anyway - on the search results page the last category is linked, and that is exactly what I want for the new links page, too.

Regards
Andreas

--------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
Hi,

Oops, if you change that too:

$out .= build ('title_linked', { name => $name, complete => 1 });

It will link up the last category.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
Hi Alex,

thank you!
Works great.

Regards
Andreas

--------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
How would I achieve the same result on the "What's Cool" page? I've tried this tweak, and variations of it, but I can't quite figure it out. (I'm still wet behind the ears. Wink)

Thanks,

Jamie Marie


---------------------
BuffyGuide.com
Quote Reply
Re: Category Links: New Page <-> Search Results In reply to
Hi,

Does it make sense on the What's Cool page? You can just add in your own html:

Home : Cool

as there are never any subcategories (unlike New).

Cheers,

Alex

--
Gossamer Threads Inc.