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