When a user logs in... create a list of their saved file ext prefernces and put that
list in the filter attribute of the cfdirectory tag.
Try that.
HTH
Clint
---------- Original Message ----------------------------------
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 19 Sep 2001 07:44:48 -0400
Hi,
I'm using <cfdirectory> to list files in a specific direectory. What I
would like to do is have a "preference" page with checkboxes
with all the possible filename extensions. By "checking" a box(s), this
information will be saved and when the user does another
listing of that directory only the file extensions which were selected in
the "preference" page would be listed.
Users have to log in with a username/password so I guess the above could be
done based on authentication.
Has anyone done anything like this? If so, how do I go about doing this.
For example, below would be the directory listing.
+ my documents
+ my work
|-- text1.txt
|-- text2.txt
|-- word1.doc
|-- word2.doc
|-- init1.ini
|-- init2.ini
|-- pic1.psd
|-- pic2.psd
|-- pic1.gif
|-- pic2.gif
+ software
On the "preference" I would have something like:
My Preferences
By checking the below those file extensions will bee omitted from the
directory listing.
[ ] .txt
[ ] .doc
[ ] .ini
[ ] .psd
[ ] .gif
SUBMIT BUTTON
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org