Forum

Thread tagged as: Problem

Comment App - Page url

I have installed the comment App, but when someone wrote a comment, I don't get the page URL of the comment. Having hundreds of comments will be hard to track and approve. Is there a way to show the page url in the back-end, instead?

<?php
$identifier = perch_page_attribute('pageID', [], true);
perch_comments($identifier, [
'template' => 'comment.html',
'sort-order' => 'DESC',
]);
perch_comments_form($identifier, 'Parent Destination Page');

                                ?>
Edward Johansen

Edward Johansen 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You could pass the URL in as a field in the form, but otherwise Perch doesn't really know about the page. You could, in theory, have multiple commentable items from a single URL.