I am trying to work out how to have a component in
pier, one of whose
settings select a class, and either other settings options are
determined by which class is chosen, or the particular class is
able to
supply an editor (Internal or external) for the settings which
relate to it.
This is something currently not supported by Magritte. That's why the
add and edit step are separated. In case of PRComponent there are
even 3 steps required: (1) choose to add a component, (2) select the
kind of component class to add, and (3) setup the properties of the
component class.
Of course it would be nice to combine those steps into one, but as I
said Magritte is not really designed to support that kind of
functionality all automatic. There are many different kind of objects
involved and one can think of many different ways how this
interaction could happen, which makes it difficult to do meta-
descriptions.
What I suggest is that you override #asComponent in you command and
put some glue code that builds different Magritte forms and displays
them depending on the state of the other Magritte components. That
works quite well and requires only little manual code to be written.
Moreover it can be even combined with manual created forms, etc.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch