cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use CMS site model attribute value in config xml or in config properties?

0 Kudos
156

I have an attribute which needs to be modified often, so I moved the attribute to CMS site model. Whenever the value needs to be changed, I will update the attribute directly in CMS site model and it will get reflected without server restart. The same attribute is used in one config xml, I need to take that also from CMSsite model. Is there any way to use the CMS site service in config xml or in project.properties file?

View Entire Topic
arvind-kumar_avinash
Active Contributor
0 Kudos

Hi - you can use Spring Expression Language (SpEL) to achieve this. You can find many examples from google search. I have mentioned below a couple of links:

  1. https://stackoverflow.com/questions/24499119/how-to-correct-use-spel-in-xml-spring

  2. https://www.baeldung.com/spring-expression-language

arvind-kumar_avinash
Active Contributor
0 Kudos

Hi - did it help?