Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic directories

Status
Not open for further replies.

hpvic03

Technical User
Aug 2, 2006
89
Alright, I got one for you hardcore coders:

I'm making a site where clients can create custom pages and can define their own directories (i.e. ), so they can give an easy link for other people to find. I have a form where clients can enter their desired directory name, and I have a cfdirectory script that creates the new directory, but now somehow I need to create an index file in each directory that links back to the originally made custom page. The original custom page is found through a url variable that links to a primary key in a database (i.e. custompage.cfm?id=538 ). Also, if possible, I would like to make it so that if people do go to the custompage.cfm?id=<number> that they see in the address box the client's custom directory.

Anybody got any ideas?

Thanks!
 
Ok, well I got most of this to work on my own - still another question though

I used getcurrentemplatepath and getcurrentdirectory and then some string functions to get the specific folder that the index file was in. Oh yeah, I used cffile copy to place a template index file in each new directory. So the index file reads the current folder, then searches the database to find which person that folder belongs to, then it takes the person to the original custompage.cfm?id=<idnumber>.

Anyway, so the url box still shows custompage.cfm?id=<idnumber>, and I would like to have it show the directory. Is there a way to manipulate what appears in the url address box?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top