0
Welcome Guest! Login
0 items Join Now

SOLVED How Do I Enable Page Comments in Gantry 5

  • SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
    • Unlike Gantry 4, it seems there is place in Gantry 5 to enable or disable comments in pages.

      Where in the settings can I do that pls?
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
  • Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
    • Yes for specific pages.

      But I suppose there should be somewhere one can turn it on and off for all pages in the Base Outline then override it on a page by page basis using the Content Settings in each override.

      But can't find that. There was such a feature in Gantry 4.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
  • Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
    • Sorry I forgot to add in my first post that I did all the above but the comment still didn't show.

      And I'm not using any comment plugin.

      I am using Kraken theme, by the way.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
  • Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 1 month ago
    • This message contains only secure information that is visible to Edwin Akpan, moderators and administrators
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 9 years 4 weeks ago
    • Well comments are not made for the Pages only for posts, but if you alter one file you can have them in there ...

      Add this in \views\partials\content-page.html.twig after the {# End Entry Content #}:
      {# Begin Comments #}
          {% if (post.comment_status == 'open' or post.comment_count > 0) and post.post_type != 'product' %}
              {{ function('comments_template')|raw }}
          {% endif %}
      {# End Comments #}

      This image is hidden for guests.
      Please log in or register to see it.
    • Available for CUSTOM WORK with Joomla, WordPress and Grav Templates and Gantry Framework!
  • Re: SOLVED How Do I Enable Page Comments in Gantry 5

    Posted 8 years 7 months ago
    • It worked!

      Thanks a lot. Really appreaciate it.

Time to create page: 0.068 seconds