Hi
I'm using your sub
my $category = $DB->table('Category');
$category->select_options('ORDER BY Name');
my $sth = $category->select( ['Has_New_Links','Number_of_Links','Name','Full_Name'] );
my @cats;
while (my $cat = $sth->fetchrow_hashref) {
$cat->{URL} = "$CFG->{build_root_url}/" . $category->as_url($cat->{Full_Name}) . "/$CFG->{build_index}";
push @cats, $cat;
}
return { new_categories => \@cats };
}
and I'm calling it like this
<%loop new_categories%>
<%if Number_of_Links > 50 or Has_New_Links eq Yes%>
<big>
<a href="/<%Full_Name%>"><%Name%></a>
</big>
<%if Number_of_Links < 50 or > 25%>
<a href="/<%Full_Name%>"><%Name%></a>
<%else%>
<small>
<a href="/<%Full_Name%>"><%Name%></a>
</small>
<%endif%>
<%endloop%>
I'm getting an output, BUT some the url of all links with two or more words and spaces between are without underscore _ ???
Does anyone know how to fix this?
Thanks
Matthias
Matthias
gpaed.de
I'm using your sub
Code:
sub { my $category = $DB->table('Category');
$category->select_options('ORDER BY Name');
my $sth = $category->select( ['Has_New_Links','Number_of_Links','Name','Full_Name'] );
my @cats;
while (my $cat = $sth->fetchrow_hashref) {
$cat->{URL} = "$CFG->{build_root_url}/" . $category->as_url($cat->{Full_Name}) . "/$CFG->{build_index}";
push @cats, $cat;
}
return { new_categories => \@cats };
}
and I'm calling it like this
Code:
<%tags%> <%loop new_categories%>
<%if Number_of_Links > 50 or Has_New_Links eq Yes%>
<big>
<a href="/<%Full_Name%>"><%Name%></a>
</big>
<%if Number_of_Links < 50 or > 25%>
<a href="/<%Full_Name%>"><%Name%></a>
<%else%>
<small>
<a href="/<%Full_Name%>"><%Name%></a>
</small>
<%endif%>
<%endloop%>
I'm getting an output, BUT some the url of all links with two or more words and spaces between are without underscore _ ???
Does anyone know how to fix this?
Thanks
Matthias
Matthias
gpaed.de