]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/field_and_forms/comment_1_a0e976cb79f03dcff5e9a4511b90d160._comment
ikiwiki (3.20140916) unstable; urgency=low
[ikiwiki.git] / doc / forum / field_and_forms / comment_1_a0e976cb79f03dcff5e9a4511b90d160._comment
1 [[!comment format=mdwn
2  username="http://kerravonsen.dreamwidth.org/"
3  ip="60.241.8.244"
4  subject="Limitations"
5  date="2010-11-23T02:18:52Z"
6  content="""
7 I'd already had a look at this idea before you posted this suggestion, and I ran into difficulties.
8 So far as I can see, it makes most sense to use the mechanisms already in place for editing pages, and enhance them.
9 Unfortunately, the whole edit-page setup expects a template file (by default, when editing pages, editpage.tmpl)
10 and anything apart from \"submit\" buttons must have a placeholder in the template file, or it doesn't get displayed at all in the form.
11 At least, that's what I've found - I could be mistaken.
12
13 But if it's true, that rather puts the kybosh on dynamically generated forms, so far as I can see.
14 I mean, if you knew beforehand what all your fields were going to be, you could make a copy of editpage.tmpl, add in your fields where you want, and then make a plugin that uses that template instead of editpage.tmpl, but that's very limited.
15
16 If someone could come up with a way of making dynamic forms, that would solve the problem, but I've come up against a brick wall myself.  Joey?  Anyone?
17
18 -- [[KathrynAndersen]]
19 """]]