All the files you might like to modify are in $BELTS_HOME/server/default/deploy/belts.ear/belts-web.war/, which is the WAR directory where you'll make all changes. The listing below
[kevin@titus belts-web.war]$ ll total 144K -rw-rw-r-- 1 kevin kevin 107K Aug 15 10:09 belts.xmap drwxrwxr-x 2 kevin kevin 4.0K Aug 15 12:49 META-INF drwxrwxr-x 2 kevin kevin 4.0K Jun 12 15:03 sample-data -rw-rw-r-- 1 kevin kevin 9.1K Aug 4 13:47 sitemap.xmap drwxrwxr-x 3 kevin kevin 4.0K Aug 11 14:23 static drwxrwxr-x 5 kevin kevin 4.0K Aug 15 12:49 WEB-INF drwxrwxr-x 13 kevin kevin 4.0K Aug 11 12:10 xsl |
The directory of most interest to the Stylist is static. In here, you'll find all the CSS and image files used in the interface. The most important CSS file is common.css, which sets the style for most pages. The other CSS files (like nude-common.css) are used in specialised cases. Normally, you will not need to make too many changes to these.
If you want to change the structure of the HTML generated, xsl is the directory for you. The XSLT style sheets often interact with each other, so it's important you take your time and check your work as you go. Lots of small changes are better than a simple large-scale change. If something goes wrong, it's easy to back your last change out if you've made small changes only.
Although we've tried to make the file names self-documenting sometimes it might not be clear which XSLT file needs editing. In these cases, armed with your Cocoon knowledge, you'll need to dive into what is probably the biggest single file in BELTS, belts.xmap. You'll normally want to open this read-only, as an incorrect change in this file can stop the web interface functioning correctly. A short time following the match statements and you should know which XSLT you'll need to edit.
BELTS will detect any changes you make to these files and reload them as necessary. This means you can edit them while BELTS is running and see you're changes immediately.