What is it? [[++[[*context_key]].yaKey]] (ModX)

126 views Asked by At

I need to change value of SEO-goals (onclick) on the multi domain website. And I found this thing on the project server(MODX): onclick="yaCounter[[++[[*context_key]].yaKey]].reachGoal('something'); return true;" And if I change this text it changes everÿwhere. What is the best solution to make it works?

1

There are 1 answers

2
Vasis On BEST ANSWER

[[++[[*context_key]].yaKey]] - this is tricky solution for multidomain sites. First modx set [[*context_key]] and for web context this means you get - [[++web.yaKey]], and then modx get web.yaKey system setting and set it to the page. So - you need to create system setting for every context with the name "context_key.yaKey".