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.

Comment Tag

January 26, 2011 10:31pm

Subscribe [4]
  • #1 / Jan 26, 2011 10:31pm

    Jerseyjones

    19 posts

    {exp:comment:form}
    <label for="name">Name</label>
    
    <input type="text" name="name" value="{name}" id="name" size="37" /></p>
    <label for="email">Email Address</label>
    
    <input type="text" name="email" value="{email}" id="email" size="37" /></p>
    <label for="comment">Comment</label>
    
    <textarea name="comment" rows="8" cols="35" id="comment">{comment}</textarea></p>
    <input type="submit" name="submit" value="Submit" /></p>
    {/exp:comment:form}

    This is my code, I’m sure I’m missing something obvious, I’m really new to this so but the form looks great without the EE code, but when i replace it with the EE tags it disappears? why is this?

  • #2 / Jan 26, 2011 10:50pm

    Kevin Cupp

    791 posts

    Try adding the channel parameter to your opening tag, like this:

    {exp:comment:form channel="blog"}

    Also, make sure the channel and entry are configured to allow comments.

    And if all that fails, the comment:form docs might help you out: http://ellislab.com/expressionengine/user-guide/modules/comment/form.html

  • #3 / Jan 27, 2011 7:22am

    Jerseyjones

    19 posts

    {exp:comment:form channel="blog_entry"}
    <label for=“name”>Name</label>
    
    <input type=“text” name=“name” value=”{name}” id=“name” size=“37” /></p>
    <label for=“email”>Email Address</label>
    
    <input type=“text” name=“email” value=”{email}” id=“email” size=“37” /></p>
    <label for=“comment”>Comment</label>
    
    <textarea name=“comment” rows=“8” cols=“35” id=“comment”>{comment}</textarea></p>
    <input type=“submit” name=“submit” value=“Submit” /></p>
    {/exp:comment:form}

    This still doesn’t work. I’ve double checked the settings on the channel as well and Its all set to accept comments.

  • #4 / Jan 27, 2011 10:38am

    Kevin Cupp

    791 posts

    Two more things to check:

    - Is your {exp:comment:form} tag pair inside or outside the {exp:channel:entries} tag pair?  It should be outside.
    - The form should be on a single-entry page, one where you’re passing in a title in the URL for EE to work with.

    Let us know if it’s still not working after checking these things.

  • #5 / Jan 27, 2011 7:11pm

    Sue Crocker

    26054 posts

    Thanks for the assist, Kevin.

    Welcome to the ExpressionEngine forums, jerseyjones.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    Are you calling the template with a url_title in your url?

    Something like this:

    http://example.com/index.php/site/comments/some-url-title

  • #6 / Jan 27, 2011 9:31pm

    Jerseyjones

    19 posts

    Thanks Kevin and Sue,

    I figured out the problem, actually I think Kevin figured it out. Without a specific URL the form wont work. When I access the page through the permalink on the main page of my blog there is a unique URL and a form field. Wow!

    Thank you guys so much for the support. !

  • #7 / Jan 28, 2011 10:04am

    Ingmar

    29245 posts

    Glad to see it’s working now. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases