Codepress for Magnolia ?

Tuesday, October 7th, 2008

I was looking for a simple way to get line numbers in html textareas – amongst other things to edit css, javascript and templates from within Magnolia, making my whole layout activatable/versionable ! – and I just stumbled upon Codepress ! Man, that thing is sweet ! (if you use Firefox, that is)

Unfortunately, their main site (codepress.org) seems down at the moment, and the Google-cached changelog page seems to tell me there’s been no release since a year. Does anybody what the real status is and/or is there’s any alternative ?

Quick update – this is available since Magnolia 4.2, thanks to Federico ! See http://documentation.magnolia-cms.com/reference/dialogs/controls.html#CodeEditorControl for details.

Share this:
  • Digg
  • del.icio.us
  • DZone
  • Reddit
  • Slashdot
  • Facebook

Tags:

12 Comments to Codepress for Magnolia ?

greg
October 8, 2008

If the clutter from the toolbar can be disabled, “editarea” seems like a valid option too, and the project seems more alive:
http://www.cdolivet.net/editarea/editarea/exemples/exemple_full.html
http://sourceforge.net/projects/editarea

It looks a little less sexy at first sight, but it seems to work in Safari :)

Federico Grilli
October 29, 2008

Hi Greg, true there’s been no release for more than a year but the software is pretty good and stable which is also shown by the increasing number of downloads (http://sourceforge.net/project/stats/detail.php?group_id=186981&ugn=codepress&mode=year&&type=prdownload). I integrated it in Magnolia (a groovy module which my employer will probably be releasing as open source) after evaluating maybe all possible alternatives and so far had no problem at all. And then it’s open source, so you can hack it at your whim :)

Federico Grilli
October 29, 2008

By the way their new site seems to be this http://codepress.sourceforge.net/

greg
October 29, 2008

Thanks Federico !
Not only I be interested in the module itself, but also to get some details about “Groovy” module. How did you achieve integration ? Why don’t we know more about this ?

Federico Grilli
October 30, 2008

Hi Greg, it is a very simple Magnolia module which basically integrates a GroovyShell object into the admin interface, so that we can run groovy scripts. Codepress here gives the user the possibility to write and edit groovy code directly in the UI. Not only s/he gets a nice syntax highlighting and thus better code readability, line numbers give them a precious hint as to where to look in case of errors and exceptions during script execution. We use the module for the import of legacy data into the jcr repository. As the customer for which we initially developed this module has a lot of different data exported from different legacy relational databases, the flexibility and simplicity of groovy allowed us to rapidly create all sorts of ad hoc import scripts, which could be tested and eventually fixed ‘on the fly’, without having to redeploy anything. A very handy tool indeed, also thanks to groovy’s seamless integration with java. My employer usually releases this kind of modules as open source, so I hope this will be the case too very soon. Cheers, Federico

greg
October 30, 2008

That’d be really great !
We currently have something similar but much less advanced, I believe: see the shell module in http://documentation.magnolia.info/modules.html – currently only supports bsh, but using the script api of Java 1.6 should make it more generic.

If you’re interested we could host the module for you; if you prefer to host it somewhere, it’s fine too of course; let me know !

In any case, there’s a page on the wiki which lists 3rd modules, feel free to complete it!

Federico Grilli
October 31, 2008

Hi Greg, that depends on my employer, which is very committed in the open source community. We usually release most our infrastructural code as open source
(the ‘openutils’ magnolia modules for instance). I’ll ask my pm to do the same for the groovy module. Cheers, Federico

greg
October 31, 2008

Ahaa, you’re an openminder! Cool, then; looking forward to that. There are a bunch of modules Fabrizio mentioned we’re eager to see :)

Federico Grilli
November 3, 2008

yep, there’s actually some interesting new modules we implemented for a new big customer which hopefully will be released as open source in the nearest future. Tschuess, Federico

Stéphane Gauthier
April 15, 2009

Hi,

Could you tell me where you are with this project as I need to implement that kind of editor within magnolia so, I’m just wondering whether I dive into it or something is already available on your side? ;-)

Thx a lot.
Cheers!

Stef

greg
April 15, 2009

Hi Stef,

Unfortunately, absolutely nothing has been on our side so far, but we’d love to see that happening :) Let us know about your progress !

greg
January 9, 2010

Quick update – this is available since Magnolia 4.2, thanks to Federico !
See http://documentation.magnolia-cms.com/reference/dialogs/controls.html#CodeEditorControl for details.

Leave a comment

Wordle :)