Hi Jean-Francois, In my opinion that is indeed the way to go.
You cannot skip any of the first steps if you are using the admincentral directly. The first step is to register the node type for use in the datamodule, and it is also the link to the data dialog. When you create a type as in step-1, the dialog and tree handler are automatically created, hence the need for step 2. However, when you are using a version handler to bootstrap your types, there is no auto-creation of dialogs and trees. So while you're manually doing the config in the admincentral, those first steps will be necessary. Best regards, Erik Alphenaar www.orange11.nl On Thu, Jun 28, 2012 at 11:07 PM, Jean-Francois Nadeau (via Magnolia Forums) <[email protected]> wrote: > Today I played with the blossom extension data module. I can now use a > dialog I created in java to create/edit items in the data repository. I > just want to know if I'm using it the way it was meant to be. > > 1- I create a new data type in the admin console. Lets call it "product". > 2- I delete the dialog that was automatically generated for "product" with > the jcr navigator. > 3- I deploy my blossom app which contains the "product" dialog: > @DataTypeDialogFactory("product") > public class Product { > @TabFactory("Settings") > public void settingsTab(TabBuilder tab) { > tab.addEdit("name", "Name", ""); > tab.addEdit("description", "Description", ""); > } > } > 4- I restart the server and now I can create "product" using the dialog I > created in java. > > Is there a way to skip step 1 and 2? > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=04164849-20a9-45e5-bfda-5900880e39a9 > > > ---------------------------------------------------------------- > For list details, see > http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
