On 2/3/2010 2:17 PM, John Long wrote:
> If you only need to deal with the children of a page you can do what
> you want with the children:each tag. There is no way to do this for
> pages on the whole site. That would be a useful extension though.
>
>    

Great!  I just realized that I answered the wrong question because I 
read the question the way I wanted to :)
Sorry about that reply!

> are there any radius tags that would allow me to build a "last edited" 
> snippet, that will display n pages ordered desc by their changed_at 
> attribute, regardless of their url?
> It's no big deal, if there's none yet, I'd build one. Like,<r:any limit="4" 
> by="updated_at" order="desc">...</r:any>
>    

Here's what I use in the sidebar of my site for the most recent 
articles.  It uses aggregate to combine the sections of interest and 
uses the published_at date for items with status="published".

<r:aggregate urls="/en/articles; /en/news">
<r:children:each by="published_at" order="desc" status="published" 
limit="5">
<r:unless_content part="no_menu"><li><b><r:link /> [<r:date format="%b 
%d, %Y" for="published_at" />]</b></r:unless_content></r:children:each>
</r:aggregate>
</ul>

I think what you want to do could be replicated from the aggregate or 
directly as a new tag.  It would be good to add it to aggregate as 
urls="radiant::fullsite" as a special indicator that it should not 
actually aggregate, but use the full table.

Sorry for the wrong answer earlier.  I really read it as meaning 'can I 
print the last edited date for a page'

Best Regards,
Mohit.
2/3/2010 | 2:28 PM.

_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org

Reply via email to