I am having trouble with listing comments for a related entry (different from my last comment issue).
I have various (product) models and they are all categorized / linked to the same product under which they fall. ie. Product = Sony PS3. Models = PS3 120GB, PS3 160GB etc. On the frontend, people can comment under each model, but in the backend, the comments get associated with the product rather than each individual model.
So what I do is this below:
{related_entries id="db_model_product"}
<!-- comments section -->
{embed="templates/comments"
entryid="{entry_id}" <!-- entry_id of product (ie. PS3) -->
total_comments="?????"
weblog="db_product"
}
{/related_entries}And with that template I can list all the comments that fall under a certain product.
Problem is I cant figure out how to conditionally display the comments. I only want to display comment info if {comment_total} > 0, but I don’t have access to that info outside of the template.
What would be a good way to access this variable?