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 form preview parameter

May 08, 2010 12:48pm

Subscribe [2]
  • #1 / May 08, 2010 12:48pm

    Jan Vantomme

    18 posts

    I want to display comment previews between my current comments and the comment form.
    My template is built in this order and everything works fine.

    * Full Article {exp:channel:entries}
    * Comments {exp:comment:entries}
    * Comment Preview {exp:comment:preview}
    * Comment Form {exp:comment:form}

    The only problem is that I can’t point the visitor to his comment in the stream after he hits the preview button.
    My template looks like this:

    {exp:comment:preview}
    <div id="comment-preview">Comment Preview Here</div>
    {/exp:comment:preview}
    
    {exp:comment:form preview="blog/article"}
    Comment form here.
    {/exp:comment:form}

    The preview URL is now http://domain.com/blog/article/article-title
    I would like it to be http://domain.com/blog/article/article-title#comment-preview so the visitor can see what he has posted.

    [Mod Edit: Moved to the How to forum]

  • #2 / May 09, 2010 2:51pm

    Greg Salt

    3988 posts

    Hi Jan,

    I’m going to move this thread into the How To forum so that you can get some community input into what you are trying to achieve.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases