/!\ This page gives samples for a feature that does not actually work! Feel free to contribute.


This would be a blog page; note that any user can create his personal blog page based on one single blog form definition page.

{{{[[DateTime(2002-11-26T14:40:07)]]

JürgenHermann A sample titleBRA sample text.


Form("Weblog", insert=top) }}}

New blog entries are added at the top. The format of blog entries is defined by the template on the WeblogForm page.

The form looks like this:


Adding data to a page (a CSV table in this case), after a given "marker" text.

[[Form("Registration", marker=Name;Email)]]
{ {{#!CSV
Name;Email
Some User;foo@example.com
First Entry;bar@example.com

The template on RegistrationForm would read "@FORM_NAME@;@FORM_EMAIL@" here.


Many more possible data processing options, including sending mail, not using the text template processing but instead getting the input fields in "raw" form (as a dict), etc. pp.


What's the status of this? Should a form be showing on this page? Is anything working yet? This could be quite useful, especially if you want to give new users some simple form templates - from creating default home pages to a bug reporting system. I'd personally want to see the possibility for the form to input the data into another page altogether and/or INSERT/UPDATE a MySQL database, which should include pulling existing data from the database to fill in the form defaults, and maybe a "On Submit Goto" to forward the user to the next form or some results.

Perhaps the best way to do this would be to have the ability to just set a variable (but not saved permanently) and go to another page (only page that the new variables would apply to) might be the best bet ... and have the new page use variable includes to either insert into a database (should be possible with existing plugins?) or add the data to a page at a certain marker. Having these as seperate pieces might be more flexible. -- EvanLanglois

MoinMoin: FormSamples (last edited 2007-10-29 19:14:51 by localhost)