Best practises for application structure


i’m new to Hippo CMS, and I’ve been playing around with it. I noticed that in all tutorials, the “repository-data” folder was used to put webfiles that are actually belonging to the application. This seems odd to me.

Don’t they belong somewhere in the site ?

I’m looking for insights on how to structure your hippo project in the best way.

update: i’ve found
which will probably help me answer the question, but still very interested in your experiences.

Thanks a lot for your input

Hi Joeri,

You shouldn’t change the structure that comes with the archetype. Your webfiles should go under repository-data/webfiles module. These files are synched to the repository automatically and made available to your page components in the request processing pipeline. I recommend following the build a website tutorial to get familiar with developing with hippo:

You’ll see that in the tutorial you will be updating ftl files in this webfiles module

To add to this, you do put jsp’s in the site module. They are compiled by your web container so they must be in the required location. You could put your ftl’s there as well but then they aren’t available in the repository.

1 Like