When a user leaves the category blank when adding a site, the add_error.html returns the blank category select box and in text next to it the whole list of possible categories. Does this happen for anyone else? Or have I messed up the add_error.html file?
Feb 22, 1999, 1:55 PM
Veteran (3111 posts)
Feb 22, 1999, 1:55 PM
Post #2 of 4
Views: 1630
Which version of Links is this? If v2, are you using templates?
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
Feb 22, 1999, 2:04 PM
User (57 posts)
Feb 22, 1999, 2:04 PM
Post #3 of 4
Views: 1622
Sorry, should know by now to add version number info!
Using Links 2 and templates.
Here is what it shows in the line for displaying in add_error.html.
<td><%Category%> <input type=hidden name=Category value="<%Category%>">
It displays just fine if a category is selected.
Using Links 2 and templates.
Here is what it shows in the line for displaying in add_error.html.
Quote:
<tr><td align="right" valign="top">Category:</td> <td><%Category%> <input type=hidden name=Category value="<%Category%>">
It displays just fine if a category is selected.
Feb 23, 1999, 1:22 PM
Administrator (9387 posts)
Feb 23, 1999, 1:22 PM
Post #4 of 4
Views: 1625
I've fixed this in the distribution. Edit add_error.html and remove:
<input type=hidden name="Category" value="<%Category%>">
completely. Then edit site_html_templates.pl and change in sub site_html_add_failure replace the $category or .. line with:
($in{'Category'} = qq~<input type=hidden name="Category" value="$in{'Category'}">$in{'Category'}~) :
($in{'Category'} = &build_select_field ("Category"));
Thanks!
Alex
<input type=hidden name="Category" value="<%Category%>">
completely. Then edit site_html_templates.pl and change in sub site_html_add_failure replace the $category or .. line with:
Code:
$in{'Category'} ? ($in{'Category'} = qq~<input type=hidden name="Category" value="$in{'Category'}">$in{'Category'}~) :
($in{'Category'} = &build_select_field ("Category"));
Thanks!
Alex