by PleegWat » Fri Dec 07, 2007 6:20 am
Alternatively, you can use the box model to create two boxes on each config page, and set the bottom one as sourced by a function that contains the data. You could reuse the same function for all pages, but you'll need to duplicate the structure lines.
form parent - form name - form type
menu - my_page - page{1
my_page - config_box - blockframe
config_box - ...
(all your settings under config_box)
my_page - comment_box - function{myfuncname
Create a function called myfuncname which returns your information, including the surrounding box.
Alternatively:
my_page - comment_box - pageframe{1
comment_box - comment_text - function{myfuncname
and have myfuncname return just the text.
You can consult the roster config formtypes for examples, specifically the menu page uses the box model. The function formtype for blocks isn't used anywhere at the moment, so they may not work - please report back if you can't get them to work.
There should be documentation about this stuff somewhere too.
I <3 /bin/bash