3 this is a minimal template need to successfully publish a story. the
4 current en/open/posting.template is out of date to the point of being
5 broken. this works. though it could use a little design help :)
7 <!-- begin MEDIANUM form -->
8 <!-- how many media items to upload? -->
9 <!-- submit simply re-displays *this* form -->
10 <form action="${openAction}?do=addposting" method="post">
12 <input type="text" name="medianum"
13 value="${medianum}">
14 <input type="submit" value="Update">
16 <!-- end MEDIANUM form -->
18 <!-- begin MAINCONTENT form -->
19 <!-- submit attempts to add new story -->
20 <form enctype="multipart/form-data" action="${openAction}?do=insposting" method="post">
22 Title: <input type="text" name="title" size="45"
23 maxlength="45" value="">
25 <!-- Pull down of available topics -->
26 <!-- iterate over all available topics: themenPopupData -->
27 <!-- if any topics are passed in (e.g. ?to_topic=3,2) then -->
28 <!-- set topic to selected -->
30 <select name="to_topic" size="3" multiple>
31 <list data.themenPopupData as t>
32 <option value="${t.key}"
34 <if (t.key == to)>selected</if>
40 Author: <input type="text" name="creator" size="45" maxlength="45">
42 Summary: <textarea name="description" rows="6" cols="45" wrap=virtual></textarea>
44 Your Email: <input type="text" name="creator_email" size="45"
45 maxlength="80" value="">
48 <input type="text" name="creator_main_url" size="45" maxlength="160" value="http://">
50 Address: <input type="text" name="creator_address" size="45" maxlength="160" value="">
52 Phone #: <input type="text" name="creator_phone" size="20" maxlength="20" value="">
54 <!-- generate list of known languages -->
56 <select name="to_language">
57 <list data.languagePopUpData as l>
58 <option value="${l.key}">${l.value}</option>
63 <textarea name="content_data" rows="20" cols="45" wrap="soft"></textarea>
65 <!-- generate N fields for uploading files -->
66 <!-- where N is medianum -->
68 <list data.mediafields as m>
70 <INPUT TYPE="file" NAME="media${m}">
72 Title ${m}: <input type="text" name="media_title${m}" size="40" maxlength="80" value="">
75 <input type="submit" value="Post"><br>