Skip to main content
Inspiring
December 1, 2008
Question

cfdirectory

  • December 1, 2008
  • 14 replies
  • 1294 views
I'd like to loop through the folders showing documents within them, and documents within folders of folders.

Is it possible to use cfdirectory to do this?

Could I use cfinclude somehow to loop though each folder?

Thanks in advance
    This topic has been closed for replies.

    14 replies

    matthiscoAuthor
    Inspiring
    December 1, 2008
    Is there a way to determine folders within folders?

    The recurse option just blurts everthing out regardless of nested folders.

    matthiscoAuthor
    Inspiring
    December 1, 2008
    Thanks for your reply.

    I've found the recurse attribute that works to an extent.

    Would it be possible to determine what documents are where and indent them for each folder, so its displayed like a folder tree?

    Inspiring
    December 1, 2008
    matthisco wrote:
    > I'd like to loop through the folders showing documents within them, and
    > documents within folders of folders.
    >
    > Is it possible to use cfdirectory to do this?

    <cfdirectory directory="dir" recurse="yes">

    --
    Mack
    Inspiring
    December 1, 2008
    Hi,

    Try the "CFFM" opensource application @ riaforge,

    http://cffm.riaforge.org/