Missing feautre: multi site manager and site_id
hello,
I try to get events from another multi site mangeer site but it seems that these feature is not supported, or am i just missing something?
In the sql, which gets all the events in mod.low_events.php, the variable $this->EE->TMPL->site_ids is used to get the site id, but this only gets the id of the current site.
To choose the site the events should get pulled from would be a great feature and is probably essential to use with the multi site manager. i will change the code myself because i really need this feature soon.
I need it for the calendar function and i am using version 1.0.3.
Greate Add-On btw :)
Cheers,
Anna
Replies
Low 3 Oct 2012 08:06
Hi Anna,
Actually, the $this->EE->TMPL->site_ids array should be populated automatically using the site="" parameter. Have you tried using that?
I see it's not mentioned in the LE docs; I'll get that added soon.
Lemon 3 Oct 2012 21:36
hi,
no sorry, this doesn't work as well.
i checked the sql statement and when i change the site id to 2 (instead of 1) i get the results i want.
this is the template tag:
{exp:low_events:calendar channel="event" site="2" date=""}
Low 4 Oct 2012 07:01
Okay, so you're saying site="second_site" doesn't work but site="2" does?
Lemon 4 Oct 2012 19:58
thanks for the super fast reply :)
no, what i wanted to say is that the parameter "site" does not work at all.
what i meant is:
i tryed the sql query the plug in produces directly as query in my database, this query seems to work fine if i change ... AND 't'.'site_id' IN ('1') ... to ....AND 't'.'site_id' IN ('2').... - i tryed this to make sure that there is data to return.
it seems that the plugin does not take the site parameter as i always get the site id 1 passed to the sql query. (site id 1 is the current site where the plug in gets used but site id 2 contains all the event data.
hope this makes sense
Low 5 Oct 2012 07:06
What does your opening Calendar tag look like at the moment? And what are your MSM sites' short names and corresponding IDs?
Lemon 7 Oct 2012 20:21
hi,
i found the issue, an extension caused a problem and fixing that fixed this problem. very strange.. but well, problem solved :)
anyway, thanks for your help!
its a very good plugin.
Low 8 Oct 2012 07:43
Ah, cool. Glad it's working now!