Expand my Community achievements bar.

SOLVED

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

Avatar

Not applicable

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

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

Not applicable

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

page footer