New Recipe creation form
"Anton van Straaten" <[email protected]>
| Newsgroups | gmane.lisp.scheme.plt.schematics |
|---|---|
| Message-ID | <[email protected]> |
I've set up a form for creating new recipes, with the topic name NewRecipe. I've added a link to this form on the Cookbook home page. The form should be fairly self-explanatory. You fill in a recipe name and title, select the parent page which you plan to add the recipe to, and press Create Recipe. This puts you into edit mode for a topic with the recipe name you specified, with the recipe title and various headings pre-filled-in. This is generated from a template called DefaultRecipeTemplate, which I've based on the recipe structure that's been used so far. The template can be edited like any other topic, if it needs to be changed. If we need more than one recipe template, perhaps for different types of recipe, it would be easy to add a field to the NewRecipe form, to allow the template to be selected. The parent topic choice is a semi-experimental feature. It may be possible to integrate the selection of a parent into a mechanism to add recipes automatically to an index page. For now, selecting a parent is still useful, since it does set the topic's parent so that the top-right corner of the recipe page will show the appropriate hierarchy. Another benefit is that topics created via the NewRecipes form for which a parent isn't selected will now be listed on the NoParentSelected page. Note that all the above uses nothing but standard TWiki & HTML features. NewRecipe contains an ordinary HTML form; the form's action invokes the appropriate topic edit URL with a few parameters such as 'topic', 'templatetopic', and 'parent'. That's more or less all there is to it. I've continued to work on a better solution for TOCs etc. (in my "spare time"). I'll write something up about that in the next day or so. I expect to put some code up this week, although it won't be a final solution yet. I'll try to document things well enough to make it possible for others to get involved, if anyone has the time and inclination. Anton ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click