0

How do you link one MSM site to another? Or putting another way, how can I get the site_url config item for a specific subsite (without resorting to PHP)? Seems like a very basic question, but couldn't find anything in the documentation.

Thank you!

2
  • Could you provide some example code for what you are attempting? I tested {site_name:site_url} and that doesn't work. You could create snippets in the default_site and make them available globally that contain the site url for each site. Then you could use {site_default_url} etc. Or what ever naming convention you choose.
    – Jim Wyse
    Jul 9, 2015 at 13:26
  • Snippets could be a solution, but then it would be necessary to change them when going into production. Not a big deal, but something as simple as {subsite_url} or {path="group/template" site="subsite"} would be very handy.
    – gioppe
    Jul 9, 2015 at 14:02

1 Answer 1

0

I've run into this deficiency too - In the end I created each subsite's URL as a global variable for cross-site usage. (FocusLab Master Config helps with that).

1
  • That's helpful! From config.php I can also set them according to the current environment.
    – gioppe
    Jul 9, 2015 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.