Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Forum plugin?

Started by Muut Archive 10 years ago · 4 replies · 2434 views
10 years ago

Hello,

is there a forum plugin existing somewhere ?

Thank you

10 years ago

Not yet. You can integrate another forum software alongside Grav, or use a service, like this one (provided by Muut)

10 years ago

ok, I'll see how hard it is to integrate it.

10 years ago

I just set up Muut (where I'm a founder) on a Grav site we're about to launch. Here's the setup:


FORUM

  1. Go to https://muut.com/setup and start a new community (it's forever free with unlimited users and posts, even after the trial for premium features ends).

  2. Insert this code snippet where you want the community to appear (replace [communityname] with the name you chose for your community):

    HTML
    <a class="muut" href="https://muut.com/i/[communityname]">[Community Name]</a>
    <script src="https://cdn.muut.com/1/moot.min.js"></script>
    
  3. That's it. You can, of course, create a file partials/forum.html.twigwith the above code and then insert it wherever you want with {% include 'partials/forum.html.twig' %}.


BLOG COMMENTING

You can use the same Muut community for blog commenting as well.

For example, with the Antimatter blog theme, add this to your blog_item.html.twig after <div class="e-content"> … </div>:

HTML
<a class="muut" href="https://muut.com/i/[communityname]/{{ page.header.taxonomy.tag|first }}" type="dynamic">[Community Name]</a><script src="https://cdn.muut.com/1/moot.min.js"></script>

Again, replace [communityname] with your own community's name.

With the above setup, if you inserted category tags in your blog entry's markdown file frontmatter, the comments will appear in a channel with the same name as your blog post's first tag — for example, if your tags are technology and news, the comments will go under technology (path: muut.com/[communityname]/technology/.)

Advantage with doing this is that you can then add a channel called "Technology" on your forum, and the comment threads for all blog posts with "Technology" as their primary tag will show up on that channel, alongside other discussions that users started on that channel.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1352 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4064 9 years ago
Archive · by Muut Archive, 9 years ago
1 2949 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago