How to set a global property per site in a multi site manager | Community
Skip to main content
October 16, 2015
Solved

How to set a global property per site in a multi site manager

  • October 16, 2015
  • 2 replies
  • 981 views

We have several regional sites (Main, Asia, Europe, etc) for our company with different content. 

We wanted to set a property-value per site (like for Asia: customeruserorigin=ndc; Europe: customeruserorigin=connect; etc)

How can we do that?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

You can do in multiple ways

1st approach : Create a page property for a template at site page. So that property can be set at every site level

2nd approach : If you want to use it in OSGi, then create a OSGi configuration at each site and set this property 

it depends on where and how you need to use the property.

 

Thanks,

Lokesh

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

You can do in multiple ways

1st approach : Create a page property for a template at site page. So that property can be set at every site level

2nd approach : If you want to use it in OSGi, then create a OSGi configuration at each site and set this property 

it depends on where and how you need to use the property.

 

Thanks,

Lokesh

October 16, 2015

Thanks. I will try using the OSGI route. 

I tried doing another route of creating a new customer property at site level and reading that in my code. But i like the OSGI route better than using the "content".