# FileListBehavior not using path attribute

**URL:** <https://www.ruby-forum.com/t/filelistbehavior-not-using-path-attribute/68294>\
**Category:** Radiant CMS\
**Created:** [September 11, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/filelistbehavior-not-using-path-attribute/68294 "2006-09-11T14:52:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pezdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Post date:** [September 11, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/filelistbehavior-not-using-path-attribute/68294/1 "2006-09-11T14:52:12Z")

</div>

Hi,

I’m having a problem with the FileListBehavior not using the path  
attribute specified, only the radiant/public directory…

I have a child of the homepage, ‘Images’, with the following body part:

–8\< –

Here is a list of files in this directory:

\<r:files:each path=“/home/ukktug/radiant/public/images/” glob=“\*”\>

- “\<r:name /\>”:\<r:uri /\>  
\</r:files:each\>

–8\< –

Filter is textile, behaviour is set. The URL is  
[http://uk.tug.org/images/](http://uk.tug.org/images/)

–  
Regards,  
Dave

---

<div class="post-metadata">

**Author:** ![pezdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Post date:** [September 12, 2006, 6:49am UTC](https://www.ruby-forum.com/t/filelistbehavior-not-using-path-attribute/68294/2 "2006-09-12T06:49:59Z")

</div>

Sorry about that…my fault entirely. I forgot to update the readme  
when I changed the way the attributes worked.

I realized that there was actually no need for the ‘path’ attribute  
at all, so it’s all done in the ‘glob’ attribute now, like this:

\<r:files:each glob=“/home/ukktug/radiant/public/images/\*”\>

- “\<r:name /\>”:\<r:uri /\>  
\</r:files:each\>

Also regarding FileListBehavior, I have an SVN repository up:

[http://svn.jmacaulay.net/radiant-extensions/file\_list\_behavior/](http://svn.jmacaulay.net/radiant-extensions/file_list_behavior/)

…which is now the URL which the behavior’s wiki listing points to.

Thanks for the heads up, Dave.

James

---

<div class="post-metadata">

**Author:** ![pezdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Post date:** [September 12, 2006, 10:00am UTC](https://www.ruby-forum.com/t/filelistbehavior-not-using-path-attribute/68294/3 "2006-09-12T10:00:21Z")

</div>

On 12/09/06, James MacAulay [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Sorry about that…my fault entirely. I forgot to update the readme  
> when I changed the way the attributes worked.

Haha okay cool 🙂

Works perfectly - thank you! 🙂

–  
Regards,  
Dave
