comments:form  

    ViewHelper für Kommentar-Formulare
    Folgender Namespace muss im Templatefile gesetzt werden:
    {namespace comments=TYPO3\BhComment\ViewHelpers}

    Attribute

    NameBeschreibungTypedefaultrequired
    typeHier wird der Comment-Type mitgegebenstring-true
    parentID des Comment-Parents (Provider - aktuell nur 'item')integer-true

    Beispiel

    html
    <comments:form type="candles" parent="{item.uid}"> <div class="news-detail-comment-fields"> <div class="news-detail-comment-field"> <label for="news-detail-comment-name" class="news-detail-comment-field-label">Ihr Name*</label> <f:form.textfield name="name" id="news-detail-comment-name" class="news-detail-comment-field-input" required="required" /> </div> <div class="news-detail-comment-field"> <label for="news-detail-comment-text" class="news-detail-comment-field-label">Ihre Nachricht*</label> <f:form.textfield name="text" id="news-detail-comment-text" class="news-detail-comment-field-input" required="required" /> </div> <div class="news-detail-comment-field"> <label for="news-detail-comment-mail" class="news-detail-comment-field-label">E-Mail-Adresse*</label> <f:form.textfield type="email" name="email" id="news-detail-comment-mail" class="news-detail-comment-field-input" required="required" /> </div> <div class="news-detail-comment-field news-detail-comment-field-checkbox"> <f:form.hidden name="gdpr" id="news-detail-comment-gdpr" value="1" /> <label class="news-detail-comment-field-note">Mit dem Klicken auf "Kommentieren" erklären Sie sich mit unseren <bh:link.dsgvo>Datenschutzbestimmungen</bh:link.dsgvo> einverstanden.</label> </div> </div> <div class="news-detail-comment-submit-wrapper"> <f:form.submit value="Kommentieren" class="news-detail-comment-submit-button" /> </div> </comments:form>