Re: [Radiant] Tags for Last edited?

2010-03-03 Thread Mohit Sindhwani
On 2/3/2010 4:53 PM, Christian Aust wrote:
 Am 02.03.2010 um 07:17 schrieb John Long:


 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.
  
 Started a new repo on github, which is still quite uncommon to me. However, 
 code is available:

 http://github.com/datenimperator/radiant-any-page

 http://ext.radiantcms.org/extensions/203-any-page


Cool!  I think this has a lot of potential though I think it should 
replicate some of the functionality of the regular tags, relating to how 
the conditions are accessed

I will see if I can add that in later :)

Cheers,
Mohit.
3/3/2010 | 11:53 PM.

___
Radiant mailing list
Post: Radiant@radiantcms.org
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


Re: [Radiant] Tags for Last edited?

2010-03-02 Thread Christian Aust
Am 02.03.2010 um 07:17 schrieb John Long:

 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.

Started a new repo on github, which is still quite uncommon to me. However, 
code is available:

http://github.com/datenimperator/radiant-any-page

http://ext.radiantcms.org/extensions/203-any-page

Thanks for Radiant! Regards,

Christian
___
Radiant mailing list
Post: Radiant@radiantcms.org
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


Re: [Radiant] Tags for Last edited?

2010-03-01 Thread Mohit Sindhwani
On 1/3/2010 6:53 PM, Christian Aust wrote:
 Hi all,

 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



r:date seems to cover it.   From the pop-up documentation of the 
available tags:

r:date /
Renders the date based on the current page (by default when it was 
published or created). The format attribute uses the same formating 
codes used by the Ruby strftime function. By default it's set to %A, %B 
%d, %Y. The for attribute selects which date to render. Valid options 
are published_at, created_at, updated_at, and now. now will render the 
current date/time, regardless of the page.

Usage:
r:date [format=%A, %B %d, %Y] [for=published_at]/

|
Cheers,
Mohit.
2/3/2010 | 8:25 AM.

|


___
Radiant mailing list
Post: Radiant@radiantcms.org
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


Re: [Radiant] Tags for Last edited?

2010-03-01 Thread John Long
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.

--
John Long
http://wiseheartdesign.com
http://recursivecreative.com

On Mon, Mar 1, 2010 at 5:53 AM, Christian Aust
christian.a...@software-consultant.net wrote:
 Hi all,

 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

 Regards,

 Christian
 ___
 Radiant mailing list
 Post: Radiant@radiantcms.org
 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

___
Radiant mailing list
Post: Radiant@radiantcms.org
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


Re: [Radiant] Tags for Last edited?

2010-03-01 Thread Mohit Sindhwani
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_menulibr: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: Radiant@radiantcms.org
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