Thanks for the input below - I will certainly look for the cf_dump.cfm
tag. I am also pretty sure the server is runing 4.5. I am going to
analyze and review the rest of your information as I hardly to work wtih
tags. I use CF usually for heavy SQL queries and integrating db's with
flash.

As for what it needs to be - your point 4 - Specifically - I did one of
those $500 favor jobs for someone who referred me a nice client. I
simply want to automate a very low priority - low activity list.
http://www.redlinemotorcars.com <http://www.redlinemotorcars.com>  - if
you click on Car Listings - you'll notice a little thumbnail and a click
here. Basically - that is manual. Each file in that carlisting folder is
a numbered html, 1001.html, 1002.html ....1015.html - Those are manually
created. I am merely trying to grab all the html files and simply list
them. Images are in that file named 1001.jpg, 1002.jpg and so on... so i
can hardcode the little thumbnail - you getting the picture? Just trying
to eliminate this person having to edit this page and maintain it. or
worse - being constantly called for me to do it ! *grin

Thanks again for your helpful replies.
Jason Miller

Matthew Walker wrote:


Jason,



4 things:



1) you need cf5+ for cfdump to work. If you don't have cf5+ look for the

custom tag cf_dump.cfm -- it's WELL worth having.



2) If you create a variable in a custom tag (in this case the "files"

recordset) it is not available outside the custom tag. However, you can

reference the caller scope inside the tag:



<cfdirectory

     directory="#getdirectoryfrompath(getcurrenttemplatepath())#"

     action="list"

     name="caller.files"

     filter="*.html"

     sort="name">



3) id you want to use this custom tag lots you would probably want to

pass in the folder as an attribute



4) Does it really need to be a custom tag? Maybe it does -- depends what

you're doing.



  

-----Original Message-----

From: Jason Miller [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
]

Sent: Saturday, 23 November 2002 6:07 p.m.

To: CF-Talk

Subject: Re: Compiling List of Files in specific folders





Mathew - Didn't want to post onlist I feel for some reason 

this is a bit

to novice for the list. And for some reason I am just not 

grasping it. I

hope you don't mind the post offlist - If you do - my sincere 

apologies

and simply delete.



I had tried what you suggested and searched on MACR a bit on running

tags in module - I currently have this.



Listing.cfm - with this code -

<cfmodule template="GetFiles.cfm">

And in t he same directory... GetFiles.cfm with this code

<cfdirectory

    directory="#getdirectoryfrompath(getcurrenttemplatepath())#"

    action="list"

    name="files"

    filter="*.html"

    sort="name">



<cfdump var="#files#">







I also tried moving the dump to the Listings page in output 

tags. Since

this is new ground for me - I really don't know what structure to

precisely follow to run the cfdirectory tag.







I get a message - doesn't understand cfdump. Is it possible that

cfdirectory is disabled? Or did I make a mess of your post with the

above?







Any help is quite appreciated.



Best Regards,



jason Miller









Matthew Walker wrote:





created. No database involved. It's also hosted so custom tags are 



really a long shot.



      







BTW in case you don't realise, you can call custom tags using 

cfmodule.







<cfmodule template=".....">







</cfmodule>







    


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to