Finding all components with a certain parameter setting,
You can use in cms/repository:
//*[@hst:parametervalues='value']
donderdag 20 augustus 2009
woensdag 19 augustus 2009
Removing meta files
Note:
Removing meta.xml files for a gallery import from a dav export:
Removing meta.xml files for a gallery import from a dav export:
find . -iname '*.meta.xml' -exec rm '{}' \;
woensdag 5 augustus 2009
HippoOnRails: Experiment 2
Introduction
In this experiment I'll show you how you can set up your own application within 15 minutes, with Hippo on Rails.
Prerequisite
For this to work you will need to have set up a working HippoOnRails example project.
Start up
Start the cms:
mvn jetty:run-war
Open up the console and add another node to the root node, call it ToDos
Start the ruby server:
jruby script/server
Next open up a console and generate the code with the normal ruby scaffold:
jruby -S script/generate scaffold todo deadline:date title:string description:text
Open up the model and extend the todo model from the jcr, add the columns (plus id column) and the table name, it should end up looking link this:

Don't forget to ad an id column, rails needs this to create the urls for your model.
Now fire up your webbrowser once again, point it to http://localhost:3000/todos, and see your results.
This is it, it's this easy to set up a very basic application in HippoOnRails.
If you have any problems setting this up, don't hesitate to ask for help with your HippoOnRails experiment on our forum.
Labels:
hippo,
hippoonrails,
jcr,
rails,
rubyonrails
dinsdag 28 juli 2009
Hippo on rails
an experiment
Intro
My employer, onehippo, challenged me to create a Ruby on Rails demo connecting to the Hippo JCR repository. So I took the two examples from day.com and tweaked them into one file until I had a working example.
Preparation
To run the example application you will need to install jruby and some java library files, the onehippo cms and the hippoonrails example application.
- To download and install jruby and rubyonrails, follow this tutorial.
- You will also need some of these jars in your jruby/lib dir.
- If you don't have a hippo repository, then download the hippo quickstart war file.
svn checkout http://forge.onehippo.org/svn/hippoonrails/tags/phonebook_1_0_1/
Getting everything to work probably took some time. If you have any questions or need some help, don't hesitate to ask them on the hippoonrails forum
If you are still here, then the next few steps should be a breeze. :-)
The example hippoonrails application
First go to your cms (quickstart) directory and run it with: mvn jetty:run-war

Next go to your hippoonrails example application and start the webbrick server: jruby -S script/server
Then fire up your webbrowser and go to http://localhost:3000/people
You should be able to create a new person, edit and delete it.
That was easy now, wasn't it?
Next stop, set up your experiment with scaffold and the basewithouttables/jcr connector hack.
Labels:
hippo,
hippoonrails,
jcr,
rails,
rubyonrails
Abonneren op:
Posts (Atom)