Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
I would like to get the comments from all the clones of the product.php page and add them in a text slider in the home page.

If the product.php page wasn't clonable and all of the comments were there I would've just added a section with product.php as masterpage and get the comments but how can I do this from all the cloned pages ?

Can this even be done ?

Thanks a lot :?:
Hi Alin,

By default the cms:comments tag fetches comments from *all* the cloned pages of the specified template
Code: Select all
<cms:comments masterpage='blog.php'></cms:comments>

It is only by using the 'page_id' or 'page_name' parameter that we constrain the listing to some particular cloned page e.g.
Code: Select all
<cms:comments page_id='13'></cms:comments>

Code: Select all
<cms:comments page_name='my_first_entry'></cms:comments>

So you don't need to do anything special for what you mentioned. The functionality is already available.

Does this help?
KK wrote: Hi Alin,

By default the cms:comments tag fetches comments from *all* the cloned pages of the specified template
Code: Select all
<cms:comments masterpage='blog.php'></cms:comments>

It is only by using the 'page_id' or 'page_name' parameter that we constrain the listing to some particular cloned page e.g.
Code: Select all
<cms:comments page_id='13'></cms:comments>

Code: Select all
<cms:comments page_name='my_first_entry'></cms:comments>

So you don't need to do anything special for what you mentioned. The functionality is already available.

Does this help?


Sorry, I forgot to reply on this topic, everything was just as you said, it's working fine :) Thanks a lot.
3 posts Page 1 of 1