Externalise theme and message.properties

44 views
Skip to first unread message

vallee.romain

unread,
Oct 21, 2019, 11:06:31 AM10/21/19
to CAS Community
Hello,
do you think it's possible to externalized int /etc/cas/something every messages.poperties, theme, templates, css ... ?
Thank you

Best regards

Foteini Ntavou

unread,
Oct 22, 2019, 5:54:23 AM10/22/19
to CAS Community
Hello,

I have recently succeeded externalising the messages.properties file.
I set cas.messageBundle.baseNames in my application.properties file as:

cas.messageBundle.baseNames = file:/path_to_newfile,classpath:custom_messages,classpath:messages

the path_to_new_file should not have the file extension .properties, as spring boot will look for _<lang>.properties files on that directory. So for example if your new file is custom_messages_en.messages, then you only need to set file:/path_to_custom_messages.

Hope that helps.
Kind regards

vallee.romain

unread,
Oct 22, 2019, 10:45:33 AM10/22/19
to CAS Community
Thank you for your answer !
Reply all
Reply to author
Forward
0 new messages