Skip to content

Comment Form errors in Twig Templates #27

@mattmoredev

Description

@mattmoredev

Hi,

I'm trying to set up a comments using Twig templates using the examples from the docs provided, I see there is documentation for getting comment _entries_ (which seems to work), but no documentation for setting up a comment form. I've tried using the documentation for an email contact form and re-purposing that example to make a comment form but with no luck. Here is what I am trying:


{% set form = exp.comment.form({
            channel: 'news',
            ...
        }) %}

        {{ form.open() | raw }}
         ...
        {{ form.close() | raw }}


I am getting the following error:
An exception has been thrown during the rendering of a template ("An exception has been thrown during the rendering of a template ("An exception has been thrown during the rendering of a template ("Cannot call abstract method Expressionengine\Coilpack\View\Tag::run()").").").

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions