Gossamer Forum
Home : Products : Links 2.0 : Customization :

web directory paths

Quote Reply
web directory paths
<%category_clean%> lists the complete path but i want to break it up like
TOP : Business & Economy : Companies
and hyper link each to the exact url
Code:
TOP => http://domain.com
Business & Economy => http://domain.com/Business_and_Economy
Companies => http://domain.com/Business_and_Economy/Companies
even in yahoo directory the feature exists so that the visitor can jump up the tree in the category chain. If there is an existing posting please let me know.

regards
Dharmanath
Quote Reply
Re: [xego] web directory paths In reply to
On the category pages, there should be a linked title (breadcrumb
navigation). They are part of the default setup, and are called in the
templates by this: <%title_linked%>

The last category is not linked, as it is the one currently being viewed, so
would only link to the page that's open. This could be changed by adding a
bit of code to nph-build.cgi.


Leonard
aka PerlFlunkie
Quote Reply
Re: [xego] web directory paths In reply to
I have tried <%title_linked%> which give only the home page hyperlinked while <%category_linked %> doesn't exist in my Links2 script.

This is an illustration what i want

Code:
<html>
<body>
<table>
<tr><TD>This is what i get with the tags</TD></TR>
<tr>
<td width="100%"><nobr><b><a href="http://localhost/links2/">
TOP</a> : Business & Economy : Companies : Infotech</b></nobr></td></tr>

<tr><TD>i want it as :</TD></TR>
<tr>
<td width="100%"><nobr><b><a href="http://localhost/links2/">TOP </a> :
<a href="http://localhost/links2/Business_and_Economy/">Business & Economy</a> :
<a href="http://localhost/links2/Business_and_Economy/Companies/">
Companies</a> :Infotech</b></nobr></td> </tr><table>
</body>
</html>

Pls let me know if this thread can help http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=114716;search_string=category_linked;#114716

regards

Dharmanath
Quote Reply
Re: [xego] web directory paths In reply to
What page are you wanting to put this on? If it's a category page, <%title_linked%> should work, and will build a trail from Top to whatever level you go to (cat/subcat1/subcat2/subcat3/etc). The link you provided is for a mod, and the part you are refering to:

$category_linked = &build_linked_title ("$rec{'Category'}");

is looking at sub build_linked_title in nph-build.cgi, which is what <%title_linked%> uses, too. That code is just calling it using a different tag. On my pages, with out changing anything, I have this:

Top » Internet & Computer » Fonts & Software

which is linking the categories. The link you mentioned has a code change (in the last post) that will make the the last category (Fonts & Software) linked, too.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] web directory paths In reply to
I copied the <%title_linked%> tag again in my category file and it solved the requirement

thanks

dharmanath