# Comments:count on main page, possible?

**URL:** <https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021>\
**Category:** Radiant CMS\
**Created:** [September 18, 2006, 5:52am UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021 "2006-09-18T05:52:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [September 18, 2006, 5:52am UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021/1 "2006-09-18T05:52:59Z")

</div>

Hi,

Im just wondering if its possible @ all to use \<r:comments:count /\>  
on the main page … i figured that setting it as commentable and  
using (\<r:comments:count /\> comments) in my layout might work but no  
luck … any ideas or workarounds?

Thanks.

- Jon

---

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [September 18, 2006, 1:57pm UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021/2 "2006-09-18T13:57:38Z")

</div>

Jon B. wrote:

> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

If you are in the context of a child page that is Commentable, it should  
work, i.e. if you’re looping through them with \<r:children:each\>. Send  
me a snippet of what you’re trying to do and I’ll see if I can help you  
more.

Sean C.  
[seancribbs.com](http://seancribbs.com)

---

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [September 18, 2006, 3:39pm UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021/3 "2006-09-18T15:39:54Z")

</div>

On the Home Page layout (the homepage + entry are commentable) …

\<r:children:each limit=“1” order=“desc”\>

### 
 Continue Reading… 

Posted by on

 ( comments)

- Jon

---

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [September 18, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021/4 "2006-09-18T16:03:56Z")

</div>

I’ve done something similar on my testing platform, which is the “Styled  
Blog” and had no issue – it looks like you’re doing something similar.  
If  
you continue to have problems, please try clearing the page cache in the  
admin interface, then reloading the page. I do have one modification to  
make to the tag, but I may not be able to get to it today.

Sean

---

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [September 19, 2006, 5:09am UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021/5 "2006-09-19T05:09:54Z")

</div>

Clearing out the page cache had no effect … its ok though since Im  
still in the process of getting around to exploring the code. I’ll  
svn up in a few days.

Thanks.

- Jon

---

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [September 19, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021/6 "2006-09-19T14:42:46Z")

</div>

I should also be available on IRC today… yesterday was a wash, I was  
away  
from my office all day. I’ll let you know as soon as the code gets  
updated.

Sean C.  
[seancribbs.com](http://seancribbs.com)
