Apologies for the thread resurrection:
Trying to follow the instructions above to add a hook_pre_process.groovy file to a new collection I have created. However, I only get a limited number of options of files I can create; it doesn't include hook_pre_process.groovy
Any suggestions? (We are using v15.24, hosted by Squiz).