Setting up the Sample Site |
Using the Bonebreaker Site as a Subsite
(recommended for first steps)
- Just copy the bonebreaker directory in your webapps/cocoon directory.
- You have to redirect the bonebreaker requests in your main Cocoon sitemap
(sitemap.xmap in your webapps/cocoon directory) to the Bonebreaker subsitemap.
You have to add the following entry:
<map:pipeline> <!-- match the Bonebreaker homepage --> <map:match pattern="bonebreaker"> <map:mount uri-prefix="bonebreaker" check-reload="yes" reload-method="synchron" src="bonebreaker/"/> </map:match> <!-- match all other Bonebreaker pages --> <map:match pattern="bonebreaker/**"> <map:mount uri-prefix="bonebreaker" check-reload="yes" reload-method="synchron" src="bonebreaker/"/> </map:match> </map:pipeline>Every URL starting with cocoon/bonebreaker (e.g., http://localhost:8080/cocoon/bonebreaker/xyz) is mapped to the Bonebreaker subsitemap. - If your Cocoon context URL is not http://<your_host>/cocoon, you have to change the value of the base-url parameters in the Bonebreaker sitemap (sitemap.xmap in the bonebreaker directory) to your cocoon url: change /cocoon/bonebreaker to /<your_cocoon_context>/bonebreaker.
- You can access the Bonebreaker site at http://localhost:8080/cocoon/bonebreaker.
Using the Bonebreaker Site as the Main Site
- Put everything from inside the bonebreaker directory into your webapps/cocoon directory (backups are recommended :) )
- Change the value of the base-url parameters in the sitemap.xmap file from /cocoon/bonebreaker to /cocoon.
- You can access the site at http://localhost:8080/cocoon.




