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.

Using exp:comment:form to post comments on an entry from another site

April 21, 2011 5:55pm

Subscribe [2]
  • #1 / Apr 21, 2011 5:55pm

    skgreene

    40 posts

    Is it possible to use exp:comment:form to post comments on an entry from another site? I am using MSM and pull content from default_site to ca_site. everything works well, except:

    {exp:comment:form entry_id="{entry_id}" }
       <ul class="form">
          <li><textarea name="comment">{comment}</textarea></li>
          <li><input type="checkbox" name="notify_me" value="yes" {notify_me} /><label class="wide-label">Notify me of follow-up comments?</label></li>
          <li><input type="submit" name="submit" value="Submit" class="btn" /></li>
       </ul>
    {/exp:comment:form}

    will not render the comment form. I tried replacing entry_id=”{entry_id}” with entry_id=“1234” where 1234 is the ID of a entry on ca_site and the form shows up. Is it possible to comment on content pulled from default_site when it’s displayed on ca_site? or is there some sort of limiter that prevents cross content commenting?

    summer

  • #2 / Apr 22, 2011 1:03pm

    Brandon Jones

    5500 posts

    Hi summer,

    Try using the site parameter on your comment form tag. If that doesn’t help, let us know what version and build of EE you’re using.

  • #3 / Apr 22, 2011 2:24pm

    skgreene

    40 posts

    adding the site=“site_that_owns_the_content” work. thanks

  • #4 / Apr 22, 2011 7:01pm

    Brandon Jones

    5500 posts

    Excellent, skgreene!

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

ExpressionEngine News!

#eecms, #events, #releases