10 years ago
5
Topic
Hi all,

I know there is a tutorial on old forum, but maybe it will be great if someone created a new tutorial to show how to create a comments system with Joomla and Seblod 3.

Thanks for your help.
Get a Book for SEBLOD
143 Posts
pretobrazza
10 years ago
0
Level 1
Hi Xelory,

There is a very useful old tutorial here by Daniel Young. The Seblod screens (version 2.0 rc) are old but the principle remains the same. In fact, one can use any fields inside the 'comment section including pictures or even use the same principle to post events per location (article) , etc.

Kind regards,
Bernard
10 years ago
2
Level 1
Hello all,
i'll describe a little comment system for a content type.
Let say:
  • "Article" is the main content type
  • "Comment" is the content type for getting comment on each content created by "Article"
What do you need in the Content view of the "Article" for a comment system :
  • A list of comments linked to this content => Search & List SEBLOD
  • The form for entering the comment => SEBLOD Form
The search list and the form will be embeded in the content view of "Article" with the help of the Plugin Field Joomla Module.

First, for the Comment Form, you have to add a field for caching the ID of the Article in which you are, for example "Parent ID". Hide this field, and put on it a live value "Url Variable" with "id" as parameter. For the storage, use the "Standard | Article | what_you_want".
Then in the Joomla Module Manager, create a SEBLOD Form Module for the Comment Form. Give it a custom position, for example "my-comment-form"

Second, for the Search & List, simply create a Search Type based on the previous "comment" content type. In the search form, add the field "Parent ID" with the match "Exact". In the List tab, setup the Seb_blog template to create a blog with 1 column. In the Item tab, add all fields you want to display for a comment.
Then in the Joomla Module Manager, create a SEBLOD List Module for this list. Give it a custom position, for example "my-comment-list"

Third, in the content view of "Article" content type, add :
  • a plugin field Joomla Module for displaying the position "my-comment-list"
  • a plugin field Joomla Module for diplaing the position "my-comment-form"

That's all, you will have a comment system for all your content.
Hope it will help.

Best regards.
Lionel

10 years ago
0
Level 2
Hi Lionel,

Thanks for sharing this tutorial, it's exactly what I needed!!
131 Posts
layonill
5 years ago
0
Level 2

I have a problem in here, it does not use the id of the article

10 years ago
0
Level 1
Hi all,

Thanks a lot for this tutorial. Just a question : when comments are displayed, is it possible to show ths author's picture and when you click on this picture, you can see his profile ?

Thanks a lot.
Get a VIP membership