On Jun 23, 2011, at 12:59 PM, Jon RINGWOOD PSE 55500 wrote: > I've had no experience of using Groovy so will need to look into that, is it > quite a steep learning curve to get the hang of?
Not at all, especially if you come from a Java background (see http://groovy.codehaus.org/Differences+from+Java). Actually Groovy can be seen as a superset of Java and you could write your scripts by using exactly the same syntax as in Java, although you would lose much of Groovy conciseness and expressiveness in that case. To get a gist of it, I would suggest you to go through their beginner's tutorial http://groovy.codehaus.org/Tutorial+1+-+Getting+started. Then you might want to look at Groovy's powerful xml support with http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper. > Our existing CMS content can be exported as xml files so I assume that any > scripts would need to amend the xml tags and add code before importing to > Magnolia. Is that how it works basically? > I also started from a bunch of xml files (as well as images, videos and other assets). What my scripts did was basically importing the binaries into SimpleMedia (but of course you can use DAM, if you prefer), then extracting the relevant data from xml and finally create website pages programmatically by populating them with those data and assets. No rocket science, really =) HTH, Federico > Sorry if these are low level dumb questions but it all seems quite a task at > the moment. > > > >>> On 23/06/11 at 10:02, Federico Grilli <[email protected]> > >>> wrote: > I would do it with Groovy scripts, no matter how the current data are stored > or can be exported to (SQL, XML). I actually had to do it for quite a large > website (maserati.com) which was the primary reason why I wrote OM's Groovy > Shell module. With Groovy you have flexibility (can change/adapt your script > on the fly without deploying anything to your servlet container and restart > it) and several nice features to handle sql and xml easily. See also > http://documentation.magnolia-cms.com/modules/groovy.html and > http://wiki.magnolia-cms.com/display/WIKI/Groovy+Shell+Scripts. > > HTH, > > Federico > > > > On Jun 23, 2011, at 10:03 AM, Jon RINGWOOD PSE 55500 wrote: > >> Morning all, >> >> Apologies if this has been discussed previously but is there any way to >> import content from another CMS into Magnolia? I don't think the import >> feature is designed for this sort of process. Is the only way to manually >> create new pages from scratch? Quite an issue for us as we're considering >> migrating our current intranet, over 7,500 pages, from our current CMS into >> Magnolia. >> >> Has anyone had any experience with this, it must be a fairly common problem. >> >> Any advice most welcome. >> >> Jon R >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> This email and any other accompanying document (s) contain information from >> Kent Police, which is confidential or privileged. The information is >> intended to be for the exclusive use of the individual(s) or bodies to whom >> it is addressed. The content including any subsequent replies could be >> disclosable if relating to a criminal investigation or civil proceedings. If >> you are not the intended recipient, be aware that any disclosure, copying, >> distribution or use of the contents of this information is prohibited. If >> you have received this email in error, please notify us immediately by >> contacting the sender or telephoning 01622 690690. > > > > ---------------------------------------------------------------- > 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]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
