In subsites.helpers.inc, the order by which the current subsite is determined is the reverse of what I would expect. Given:

function subsites_get_current() {
  static $sid;

  if ($sid) return $sid;

  if ($sid = _subsites_get_current_by_pages()) {
    return $sid;
  }
  if ($sid = _subsites_get_current_by_menu()) {
    return $sid;
  }
  if ($sid = _subsites_get_current_by_node()) {
    return $sid;
  }

  return FALSE;
}

This means that page path matches which will override menu matches which will override specific node matches. I would propose that it would make more sense in reverse - a specific node match for a subsite overrides anything. Much like CSS where style attributes override inline page class styles which override external includes (if you have them in the right order).

I will admit that changing this could break a lot of things for other Subsites module users.

Comments

davyvdb’s picture

Category: bug » feature
Status: Active » Closed (won't fix)

I'm planning to implement an "weight calculation" setting someday. So you can decide on the order per (sub)site.