ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

"edit me" link across MSM sites

March 24, 2011 12:41pm

Subscribe [3]
  • #1 / Mar 24, 2011 12:41pm

    haggis

    70 posts

    This is a portion of a snippet I use to add an “edit me” type link to each entry on a site.

    {if member_group=="1"  OR  member_group=="9"  OR logged_in_member_id == "{member_id}"}
    <a href="http://{cp_url}?S=0&D=cp&C=content_publish&M=entry_form&channel_id={channel_id}&entry_id={entry_id}">edit</a>{/if}

    Worked a treat. Now with MSM, is there a way to tweak it to make it site-specific? Our club has a public-facing site (public) and an organizational members-only (member) site. I find that the link works for whichever site I was last using in the control panel, but get a “You are not authorized to access this page” error if I use the link on the other site.

    I tried stuffing “&site_id=2” into it but that didn’t seem to work 😊

    I have not set up CP masking (I thought that was optional and the admins are co-club members not client/vendor, so I didn’t bother). Is it necessary for some reason?

    The sites are different domains, but are really just two subdirectories in my hosting directory.

    Current builds of both EE and MSM.  Thanks for any pointers or tips.

  • #2 / Mar 25, 2011 4:22am

    John Henry Donovan

    12339 posts

    haggis,

    There is no site_id you can add to the URL unfortunately. You are welcome to add to this feature request though

    I also see this add-on launched today which may help

  • #3 / Mar 25, 2011 10:58am

    haggis

    70 posts

    Thank you. Appreciate the confirmation and pointers. Feature request endorsed. Will have to think about the add-on, but appreciate knowing it’s available if I can’t figure out a workaround.

  • #4 / Mar 26, 2011 4:36pm

    Greg Salt

    3988 posts

    Hi haggis,

    Glad that John Henry got this squared away for you.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases