On 8/6/07, Mike Heins <suppressed> wrote: > Quoting Dan Bergan (suppressed): > > On 8/6/07, Mike Heins <suppressed> wrote: > > [snip] > > > > > > > > My catalog directory is: > > > > /var/lib/interchange/catalog > > > > > > > > The actual directory is in my httpdocs directory, called "files". So, > > > > I created a symbolic link to the "files" directory. So, now there is > > > > a sub-directory: > > > > /var/lib/interchange/catalog/files > > > > And then I tried: [if type=file term=|files/test.txt|]found![/if] > > > > > > > > Can the [if file] follow a symbolic link? > > > > > > Yes it can, presuming your file system permissions permit that. It > > > is just a perl file test. > > > > > > Try from the shell: > > > > > > $ touch /var/lib/interchange/catalog/test.txt > > > > > > > As the interchange user: > > $touch /var/lib/interchange/catalog/files/test.txt > > > > this seemed to work -- returned nothing. > > > > > Then in the page: > > > > > > [if file test.txt]found! [else] NOT FOUND [/else] [/if] > > > > [if type=file term=|files/test.txt|]found! [else] NOT FOUND [/else] [/if] > > > > > > > > That will tell you if your directory permissions are the problem. > > > > That returned "NOT FOUND". > > You haven't mentioned OS, HTTP server, or anything else. But something > is very bizarre on your system, or your catalog directory is not where > you think it is. > > It is basically up to you at this point -- this feature of IC definitely > works, so there is something missing somewhere on your system or in your > understanding. Good luck. > Mike, Thanks for taking time to help me out. One final question - when I log into the admin, my symlinked directory is there, but it is showing up as a "file" rather than a "folder". Is that normal behavior? I created it with: ln -s /path/to/httpdocs/files ./files By the way, the [if file] works fine with actual files in the catalog - just not this symlinked directory. So, there is definitely something strange going on in my system. I'm on RedHat EL4, Apache 2.0.52. But, if anything bizarre is going on, it always seems to be my Plesk control panel that causes it. As a work-around, I think I'll go the other way. Create a directory in my catalog, then create the symlink in my httpdocs folder (to allow for ftp uploads). Thanks. Dan _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.