[pmwiki-users] please help me with conceptualize a recipe

Patrick R. Michaud pmichaud at pobox.com
Sun Oct 8 11:39:34 CDT 2006


On Sat, Oct 07, 2006 at 11:06:35PM -0500, JB wrote:
> I want to create a recipe to convert a simple table to 
> table directives.
> 
> I envision someone would add a recipe file to the config.php
> which would enable someone to type in a url with 
> "?action=converttable".  This would take the page source, 
> convert the code, then put it into the edit form. They would
> then click "save" to save the changes.  This is similar to 
> how a restore works and I think it makes sense here too.

You might want to take a look at the Cookbook.ExcelPaste
recipe, which does a similar thing with spreadsheet data.
In this recipe, an author can copy-and-paste data from an
open spreadsheet into a page, and then press the "convert" button
to have it converted into table markup.  The author can then
preview the conversion before having it saved (using the
standard save process).

Pm




More information about the pmwiki-users mailing list