rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: raybob on April 30, 2011, 10:18:54 PM

Title: change a folder resource for 1 connection only
Post by: raybob on April 30, 2011, 10:18:54 PM
Is there a way to do a {.set item|test|resource=new.} or something like that, where the resource of a folder is changed temporarily, but only for the connection that got the page with the macro?

My end goal here is to have a folder like /test/ but it shows a different directory based on the value of %user% or some other variable.

Thanks,
Raybob
Title: Re: change a folder resource for 1 connection only
Post by: rejetto on May 02, 2011, 05:29:22 PM
 create the "test" folder, and put the script you need in the diff template, so that you {.redirect.} the user on a different folder.
Title: Re: change a folder resource for 1 connection only
Post by: raybob on May 02, 2011, 09:32:15 PM
But the point is that I would like a way to show different files, in the same folder.
Title: Re: change a folder resource for 1 connection only
Post by: rejetto on May 03, 2011, 03:28:01 PM
you can assign permissions to files, and then use the "list protected items..." feature in menu > virtual file system
Title: Re: change a folder resource for 1 connection only
Post by: raybob on May 03, 2011, 09:10:21 PM
I guess I could try to make that work . . .

I'll be back later  ;)