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

Display th categories on detailed page.

Quote Reply
Display th categories on detailed page.
Hello,

I seek a solution to modify a global.

I display th categories of the link on detailed page.

The global :

<%get_link_cats_detailed($ID)%>
-----------------------------------
sub {
my $id = shift;
my $db = $DB->table ('Category','CatLinks');
my $sth = $db->select ( { LinkID => $id }, ['Name','Full_Name'] );
my $cat;
while (my ($name,$full_name) = $sth->fetchrow_array) {
my $test = Links::Build::build('title_linked', { name => $full_name, complete => 1 });
$cat .= qq~$test<br>~;
}
return $cat;
}
----------------------------------
My problem

The URL indicates name of the category and index.html
category/index.html

I would like to obtain only the name of the category in the URL and to remove index.html
category/ : category/sub-category/

You have an idea ?


Thank you for your assistance.

Oyo
Quote Reply
Re: [Oyo] Display th categories on detailed page. In reply to
would this help?

http://www.gossamer-threads.com/...orum.cgi?post=291604


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Display th categories on detailed page. In reply to
Thank you for your answer.

But, I seek a solution with the global one indicated.
http://www.gossamer-threads.com/...i?post=273959#273959

It makes it possible to obtain on the detail page :

Home : CategoryA : CategoryB

and not

Home : CategoryA : CategoryB : Title link

I think that the solution is there.

http://www.gossamer-threads.com/...i?post=282061#282061

But, I do not manage to use the solution suggested not Brewt.

An idea ?

Thank you
Quote Reply
Re: [Oyo] Display th categories on detailed page. In reply to
In the next release (3.2.0, probably to be released some time next week), will have a include_last option, which you can pass in 0 to not include the last item.

Adrian
Quote Reply
Re: [brewt] Display th categories on detailed page. In reply to
Hi,

I have a problem with include_last => 0.

If I twice use it on the detailed page, it removes the last link for the second use.

<%Links::Utils::format_title($title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 1, include_last => 0)%>

With the first use, it gives :
Home : My category

With the second use, it gives :
Home


It seems impossible to use twice on the same page include_last => 0.

It is a bug ?

If I do not use include_last => 0, there is no problem.

Thank you for your assistance.

Oyo