[Radiant] comments:count on main page, possible?

Jon Baer jonbaer at jonbaer.com
Mon Sep 18 08:39:16 CDT 2006


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

<r:children:each limit="1" order="desc">
<div class="first entry">
   <h3><r:link /></h3>
   <r:content />
   <r:if_content part="extended"><r:link anchor="extended">Continue  
Reading&#8230;</r:link></r:if_content>
   <p class="info">Posted by <r:author /> on <r:date format="%b %d, % 
Y" /></p> (<r:comments:count /> comments)
</div>
</r:children:each>

- Jon

On Sep 18, 2006, at 7:55 AM, Sean Cribbs wrote:

> Jon Baer wrote:
>> 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
>> _______________________________________________
>> Radiant mailing list
>> Post:   Radiant at lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   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 Cribbs
> seancribbs.com
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




More information about the Radiant mailing list