Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Which part of this is the last subcat?

Quote Reply
Which part of this is the last subcat?
In linked_title:
Code:
my $input = shift;
my (@dirs, $dir, $output, $path, $last);

@dirs = split (/\//, $input);
$last = &build_clean(pop @dirs);

$output = qq| <A HREF="$build_root_url/">Directory</A>:|;
foreach $dir (@dirs) {
$path .= "/$dir";
$dir = &build_clean ($dir);
$output .= qq| <A HREF="$build_root_url$path/">$dir</A>:|;
}
$output .= " $last";

return $output;
}
Which part of this makes the last subcategory in Category: subcategory: last subcategory

I would like to make it read like this
Category: subcategory: last subcategory

(bold & larger type size)

Quote Reply
Re: Which part of this is the last subcat? In reply to
The following code grabs the last subcategory:
Code:
$last = &build_clean(pop @dirs);
So to change the HTML for the last subcat, you would edit:
Code:
$output .= " $last";
Happy Coding,

--Drew
http://www.FindingHim.com