From: James E. F. <jf...@ac...> - 2003-03-16 03:13:57
|
As I was working on some phpESP code today, I thought of a simple way to implement question templates. It would be fairly trivial. All that we need to do is to define a "magic survey number" (or name), and any question in that magic survey would be a template. The gui could be pretty simple: On the standard question tab there could be a 'add this as a template' feature that would copy the current question to the magic survey. There could also be a drop-down or pop-up for loading a template to use. We could also add a template editor, that would pretty much just be the question tab w/o the other tabs. The magic survey id would have the status set to deleted to keep it from showing up anywhere else, and perhaps have a new bit set to mark it as magic. (This magic bit would keep it from showing up on the purge page, and any future archive manager.) Any comments? Anyone want to code this up? I may code it at some point, but I just wanted to share my thought so someone else might remember it as so as it vanishes from my head. Take it easy, -James |
From: angek <ang...@ip...> - 2003-03-16 07:16:13
|
Interesting concept James, One worth some thought. Kon On Sun, 2003-03-16 at 14:13, James E. Flemer wrote: > As I was working on some phpESP code today, I thought of a > simple way to implement question templates. It would be fairly > trivial. All that we need to do is to define a "magic survey > number" (or name), and any question in that magic survey would > be a template. The gui could be pretty simple: On the standard > question tab there could be a 'add this as a template' feature > that would copy the current question to the magic survey. > There could also be a drop-down or pop-up for loading a template > to use. We could also add a template editor, that would pretty > much just be the question tab w/o the other tabs. > > The magic survey id would have the status set to deleted to keep > it from showing up anywhere else, and perhaps have a new bit set > to mark it as magic. (This magic bit would keep it from showing > up on the purge page, and any future archive manager.) > > Any comments? Anyone want to code this up? I may code it at > some point, but I just wanted to share my thought so someone > else might remember it as so as it vanishes from my head. > > Take it easy, > -James > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > phpESP-devel mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-devel |
From: <de...@go...> - 2003-03-16 08:37:09
|
Not to sound too daft but..... Why not just implement a boolean field for questions defining them as template questions? Then any question could be turned into a template. When a TQ was added to a survey the clone question would have this set to FALSE so you wouldn't accidentally end up with 27 TQs. So what am I missing that makes this not feasible? Jason > As I was working on some phpESP code today, I thought of a > simple way to implement question templates. It would be fairly > trivial. All that we need to do is to define a "magic survey > number" (or name), and any question in that magic survey would > be a template. The gui could be pretty simple: On the standard > question tab there could be a 'add this as a template' feature > that would copy the current question to the magic survey. > There could also be a drop-down or pop-up for loading a template > to use. We could also add a template editor, that would pretty > much just be the question tab w/o the other tabs. > > The magic survey id would have the status set to deleted to keep > it from showing up anywhere else, and perhaps have a new bit set > to mark it as magic. (This magic bit would keep it from showing > up on the purge page, and any future archive manager.) > > Any comments? Anyone want to code this up? I may code it at > some point, but I just wanted to share my thought so someone > else might remember it as so as it vanishes from my head. > > Take it easy, > -James > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > phpESP-devel mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-devel |