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
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