Skip to content

Commit 07bf8b9

Browse files
committed
Improve doc on special action vars in cusotmizing.txt.
Added example html inputs to illustrate the doc. Fix position of designator in doc example. It occurs before @link@ or other edit command.
1 parent 3347a98 commit 07bf8b9

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Features:
2222

2323
- add image/svg-xml as valid mime type to serve. Was being served as
2424
octet-stream. (John Rouillard)
25+
- improve customizing.txt documentation on use of Special Form
26+
Variables. Added example html inputs to illustrate the doc.
27+
Fix position of designator in doc example. It occurs before
28+
@link@ or other edit command.
2529

2630
2021-06-19 2.1.0b1
2731

doc/customizing.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,11 @@ Two special form values are supported for backwards compatibility:
24452445
@link@messages=msg-1
24462446
msg-1@content=value
24472447

2448+
which is equivalent to the html::
2449+
2450+
<textarea name="msg-1@content"></textarea>
2451+
<input type="hidden" name="@link@messages" value="msg-1">
2452+
24482453
except that in addition, the "author" and "date" properties of
24492454
"msg-1" are set to the userid of the submitter, and the current
24502455
time, respectively.
@@ -2455,15 +2460,22 @@ Two special form values are supported for backwards compatibility:
24552460
@link@files=file-1
24562461
file-1@content=value
24572462

2463+
by adding the HTML::
2464+
2465+
<input type="file" name="file-1@content">
2466+
<input type="hidden" name="@link@files" value="file-1">
2467+
24582468
The String content value is handled as described above for file
24592469
uploads.
24602470

24612471
If both the "@note" and "@file" form variables are
24622472
specified, the action::
24632473

2464-
@link@msg-1@files=file-1
2474+
msg-1@link@files=file-1
2475+
2476+
is also performed. This would be expressed in HTML with::
24652477

2466-
is also performed.
2478+
<input type="hidden" name="msg-1@link@files" value="file-1">
24672479

24682480
We also check that FileClass items have a "content" property with
24692481
actual content, otherwise we remove them from all_props before

0 commit comments

Comments
 (0)