Agree, and there’s been some discussion recently of an edit view that would actually require something like this.
bs is right that the module interface has a parameter section which could be adapted for snippets / snippet instances:
&mod_path=Module Path (from site root);string;assets/modules/quick_edit &show_manager_link=Show Manager Link;int;1 &show_help_link=Show Help Link;int;1 &editable=Editable Fields;string;pagetitle,longtitle,description,content,alias,introtext,menutitle,published,hidemenu,menuindex,searchable,cacheable,template
ie variable=label;type;defaultvalue
And that’s already pretty good, because it’s copy/pasteable. I see no benefit in an XML string, it would simply add bloat. However, it should be the same as the module parameters and if that moves to XML then it would make sense to change in line.
The part:
Quote from: bS at Aug 21, 2006, 05:26 AMand how parameters can be combined (like parameter2 can only be used if parameter1 is set to " 1")
is more awkward. This would mean adding conditions:
&talklikepirate=Talk like a pirate;boolean;1; &parrotname=Pirate's parrot name;string;Polly;talklikepirate=1||ispetshopowner=1
which would presumably then be used to show/hide options accordingly. It would be nice to have, but probably not necessary for the first release.