This posting is by way of information for anyone else running CF7MX 
under Linux (and, likely, permutations of Solaris and CF6MX though I 
don't have either installed for testing). If anyone can actually 
*explain* why CF behaves as it does, that would be an added bonus...

For context, we run shared servers with a subdirectory tree aliased in 
Apache to /common available to all vhosts. The (physical) directories 
are arranged thusly:

  /home/httpd/common/...
  /home/httpd/vhosts/the.domain.name/sitedocs/...

There are a few shared CF templates under /common (for our CMS and for 
both soeditor and fckeditor dhtml editors). Some of these need to know 
the vhost base directory that, for reasons unexplained, ColdFusion does 
not make available in any direct way so are accessed by symlinks from 
the individual vhosts' web space, so we can use GetBaseTemplatePath() to 
derive the vhost base path.

This works for some symlinked templates, but not for others: you either 
get the path to the symlink (what we want) or the path to the linked 
file (utterly useless). Experimentation shows that CF7MX is, at least, 
consistent in which you get, but the rules are odd:

For a symlink in a vhost's base directory, the target must be two or 
less directory levels under the "common" base directory. For every extra 
level of directory that the symlink is placed under the vhost's base 
directory, the target can be *two* levels deeper under "common". It 
makes no difference at all whether the symlink is relative or absolute.

I've no idea what difference changing the path depth of the vhosts' base 
directories would make; I've found out enough to work around our 
fckeditor image connector problem and I suspect that further 
investigation would just lead to madness...

Anyhow, hoping this will, one day, help someone else,
-- 
Pete Jordan
Horus Web Engineering Ltd
http://www.webhorus.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200718
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to