1

MSM or not to MSM?

I have a site where a specific member group can only access one area of the website, would I be better to use MSM or just stick with a template group?

www.mysite.com/preciousthings or www.preciousthings.com

If the member goes to www.mysite.com they will be redirected to the /preciousthings directory.

So apart from having a neater url is there any reason to use MSM over a template group, for security etc, or is it just a lot of work for not much gain?

1

If it's just one section, I think it's too much work (and money) for really no gain. Just add a global conditional for all pages that will redirect visitors who are logged out or in this specific member group to your /preciousthings directory.

{if logged_out OR logged_in_member_group_id == 7}{redirect="preciousthings"}{/if}
| improve this answer | |
  • I definitely agree. MSM adds a lot of complexity to the setup, so unless you absolutely need it, I'd avoid it. – Jeremy Gimbel Oct 20 '13 at 22:56
0

Alternatively, you can use the built-in template access control.

In Design > Templates > Template Manager. You can click the Access link on any template and define who can view this template, and there they are sent if they can't.

Template access control settings

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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