In the new gossamer link it possible to build name to the page like the mane of the title and it possible to make the page name url short then the title.
I use global to make the url like the title name, is it possible to make change the global code so the mane of the title will limit to number of character?
Here is the code I use (from yogi )
sub {
my $ID = shift;
my $Title = shift;
my $cats = $DB->table('Links')->get_categories($ID);
my ($cat_id,$cat_full_name) = each %$cats;
my $cat_url = $DB->table('Category')->as_url($cat_full_name);
$Title =~ y/ \t\r\n?"'#/--/d;
return '/' . $cat_url . '/' . $Title . '_L' . $ID;
}
limit the number of character in the url
I use global to make the url like the title name, is it possible to make change the global code so the mane of the title will limit to number of character?
Here is the code I use (from yogi )
sub {
my $ID = shift;
my $Title = shift;
my $cats = $DB->table('Links')->get_categories($ID);
my ($cat_id,$cat_full_name) = each %$cats;
my $cat_url = $DB->table('Category')->as_url($cat_full_name);
$Title =~ y/ \t\r\n?"'#/--/d;
return '/' . $cat_url . '/' . $Title . '_L' . $ID;
}
limit the number of character in the url