Thanks Adrian.
I copied that EXACTLY... and I am NOT getting the results.
Here is my test page:
http://www.bcdb.com/...0489-Hakuja_Den.html
Look right under Cartoon Production Information...
The first "English Title" is your code...
The second is the Andy code (just so you can see it should show!)
Eng_Title_1 global is:
sub {
my $title = shift;
return $title ? [split(/\s+,\s+/, $title)] : [];
}
Template is:
<%~if Eng_Title%>
<%~set Eng_Title_loop = Eng_Title_1($Eng_Title)%>
English Title<%if Eng_Title_loop.length > 1%>s<%endif%>:
<%loop Eng_Title_loop%>
"<em><%loop_value%></em><%if Eng_Title_loop.length > 1%><%if not last%>,<%else%>.<%endif%><%endif%>"
<%set i = $Eng_Title_loop.length - 1%><%if Eng_Title_loop.length > 1 and $i == $row_num%> and<%endif%>
<%endloop%>
<%~endif%>
Sorry- I feel like an idiot for not seeing the problem. This is just abit above my level, though...
dave
Big Cartoon DataBase
Big Comic Book DataBase
I copied that EXACTLY... and I am NOT getting the results.
Here is my test page:
http://www.bcdb.com/...0489-Hakuja_Den.html
Look right under Cartoon Production Information...
The first "English Title" is your code...
The second is the Andy code (just so you can see it should show!)
Eng_Title_1 global is:
sub {
my $title = shift;
return $title ? [split(/\s+,\s+/, $title)] : [];
}
Template is:
<%~if Eng_Title%>
<%~set Eng_Title_loop = Eng_Title_1($Eng_Title)%>
English Title<%if Eng_Title_loop.length > 1%>s<%endif%>:
<%loop Eng_Title_loop%>
"<em><%loop_value%></em><%if Eng_Title_loop.length > 1%><%if not last%>,<%else%>.<%endif%><%endif%>"
<%set i = $Eng_Title_loop.length - 1%><%if Eng_Title_loop.length > 1 and $i == $row_num%> and<%endif%>
<%endloop%>
<%~endif%>
Sorry- I feel like an idiot for not seeing the problem. This is just abit above my level, though...
dave
Big Cartoon DataBase
Big Comic Book DataBase