Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comments in category blog view #183

Open
reilldesign opened this issue Jul 28, 2024 · 2 comments
Open

comments in category blog view #183

reilldesign opened this issue Jul 28, 2024 · 2 comments

Comments

@reilldesign
Copy link
Contributor

Is it possible to display all article comments already in the catgory blog view to create a social wall?

@Globulopolis
Copy link
Collaborator

No.

@reilldesign
Copy link
Contributor Author

I have tried the following. In a category blog override i load the Jcomment class

JLoader::register('JComments', JPATH_SITE . '/components/com_jcomments/jcomments.php');

and echo the individual comments after the intro text.

echo $this->loadTemplate('item'); echo JComments::showComments($this->item->id, 'com_content', $this->item->title, true);

This works very well so far. However, it is not possible to write a new comment per article, because the submit button tries to send for all fields, even the empty ones. Would such an override be a good option? is there a way to link the submit button with the corresponding articles?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants