Typically I'll use Virtual Directories (or Alias in Apache) for this, to
ref the SiteSpecific folder, and use ExpandPath("/SiteSpecific") to
build out absolute paths for internal app use. No db interaction
required, pathing automatically changes if the server config changes.
(Not sure how this works in an S3 scenario, as I haven't had the opp to
try yet).
<img
src="/SiteSpecific/#APPLICATION.site.siteId#/assets/images/siteheader.jpg"
title="#APPLICATION.site.displayName#" />
FileWrite(ExpandPath("/SiteSpecific") & "\" & APPLICATION.site.siteId &
"\assets\documents\nav.xml",REQUEST.navigation);
Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer
____________
http://blog.cutterscrossing.com
Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
"The best way to predict the future is to help create it"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342471
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm