Expand my Community achievements bar.

SOLVED

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

Avatar

Former Community Member

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Former Community Member

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".