On Jun 7, 2010, at 10:16 AM, Suraj wrote: > Hi, sorry, going one step backwards how do I create a Magnolia module from > the .java class I have created? What API do I need to download? > > As you can tell I'm very new to Magnolia, there isn't a lot of help available > online on creating a custom module/command :(
Yes you keep saying this. Did you look at http://documentation.magnolia-cms.com and wiki.magnolia-cms.com ? There is probably much more of a documentation then you realize. You might try to search for it as well ;) Searching for "create module" (w/o quotas) gave me links listed below, I'm sure one of them will give you an answer or at least lead you to more precise question to ask. http://documentation.magnolia-cms.com/reference/module-mechanism.html http://wiki.magnolia-cms.com/display/DEV/Create+a+New+Module http://wiki.magnolia-cms.com/display/WIKI/Module+QuickStart BTW you don't necessarily need a module just to add a command (but it would definitively be easier to maintain all the stuff you develop in a module rather then just keep it scattered all over the place). You can put definition of your command in any of the existing modules and just stick the class in WEB-INF/classes. Jan > > From: Jan Haderka <[email protected]> > To: Magnolia User-List <[email protected]> > Sent: Mon, 7 June, 2010 7:51:18 > Subject: Re: [magnolia-user] How do you register a custom command? > > In short all you need is just create a node with nodeData "class" and set > value to fully qualified name of your command. > The command node has to exist in the /modules/<yourmodule>/commands hierarchy > or in the subfolder of that (the subfolder is then referred to as a > "catalogue" in scheduler. If you are creating catalogue, make sure it's name > is unique and not defined already by any other modules. > > Look at config:/modules/admininterface/commands/ if you need examples. > > HTH, > Jan > > On Jun 7, 2010, at 2:02 AM, Suraj wrote: > >> I have written a simple .java file, but I am not sure how to register this >> command on Magnolia? >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- > > - > Best regards, > > Jan Haderka, PhD. > Magnolia International Ltd. > > http://www.magnolia-cms.com > > You should join us at Magnolia Conference 2010: > http://www.magnolia-cms.com/conference > > http://twitter.com/magnolia_cms > http://facebook.com/Magnolia > > -------------------------------------- > > Magnolia® - Simple Open-Source Content Management > > > > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- - Best regards, Jan Haderka, PhD. Magnolia International Ltd. http://www.magnolia-cms.com You should join us at Magnolia Conference 2010: http://www.magnolia-cms.com/conference http://twitter.com/magnolia_cms http://facebook.com/Magnolia -------------------------------------- Magnolia® - Simple Open-Source Content Management ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
