Hi Erando, Normally, a control will live in a magnolia module, Federico already sent you the links for starting with module development.
If you just want to quickly try out your control, you don't absolutely need to write a whole module to get started. You can also do the following: 1. create a java project in your favourite IDE 2. add the libraries from <magnolia-webapp-dir>/WEB-INF/lib/*.jar to your java project's build-path 3. create a new java-class for your control, which will be a subclass of "info.magnolia.cms.gui.dialog.DialogControlImpl" --> depending on your control, you may find it easier to subclass "DialogBox", "DialogStatic", "DialogEdit" or one of the other existing control classes 4. write your control 5. compile, and export your java project into a JAR file. 6. copy the JAR into <magnolia-webapp-dir>/WEB-INF/lib/ and restart tomcat. 7. in the magnolia backend, go to configuration, and create a new control definition --> you can create the control definition in any module, since you don't have your own module yet. --> for example, create the control definition under /modules/adminInterface/controls --> create a contentNode, eg "mycontrol", with a node-data "class" set to your classname 8. you can now use your control "mycontrol" in your dialogs. Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Erando (via Magnolia Forums) Gesendet: Dienstag, 17. April 2012 10:25 An: Magnolia User List Betreff: [magnolia-user] Custom Control / Very general questions Hi there... I need to create a custom control for one of my dialogs/paragraphs. Now I wanted to follow this tutorial: http://wiki.magnolia-cms.com/display/WIKI/Creating+a+custom+control But I do have many very general questions about this. Please notice that I'm a beginner. Where do I have to create the Java files? I mean...I have installed Magnolia 4.4.5 on a Linux Server but where can I create those files? Is this part of devolping Magnolia and do I have to checkout the repository? Sorry for these silly questions... -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=f671ef05-3214-4417-9f28-c3b38ef6947c ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
