Sean,

Yeah - I started off by trying that - only I get the following Mysql 
error in the area of the page I'd expect to see the links printed.

Any ideas??

*Mysql::Error: You have an error in your SQL syntax; check the manual 
that corresponds to your MySQL server version for the right syntax to 
use near 'asc id' at line 1: SELECT * FROM page_attachments WHERE 
(page_attachments.page_id = 8) ORDER BY asc id*


Sean Cribbs wrote:
> Keith,
>
> I quietly added that feature the other day.  It is kind of untested.  
> However, because of the assignment of tag.locals.attachment inside the 
> loop, it should work properly, but only for the current page.  It will 
> not cascade to parent pages.  Here's a snippet of how it should work:
>
> <r:attachment:each>
> <p><r:link /> - <r:date /></p>
> </r:attachment:each>
>
> That would conceivably print a link to each attachment in a paragraph 
> with its upload date.
>
> Sean
>
> P.S. I just found and fixed a minor bug in the order clause.  I hope 
> that wasn't your problem!
>
> Mailing wrote:
>   
>> Hi,
>>
>> Has anyone managed to use the page attachments extension to display all 
>> attachments relating to a page by using <r:attachments:each>? Seems as 
>> though it can only be used if you can specify the name at the moment?
>>
>> Has anyone got any example code for this?
>>
>> Keith
>> _______________________________________________
>> Radiant mailing list
>> Post:   [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>   
>>     
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
>   

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

Reply via email to