Okay, so files are the bane of my existence this week :)
I have a newsletter system that I want to share among multiple clients. The system allows for multiple templates, and each template can have multiple text blocks, images, or files linked to it. The application is stored in C:\web\objects (which is not accessible to the outside world) and each site has a mapping to objects, and a facade component called contactManager.cfc which is used for some access to the application, namely sending newsletters and providing 1-click unsubscribe services.
I'm storing the templates, images and files under each site's root, in a newsletters/ folder. I need my newsletter object to be able to include the template, and then dynamically process it, so the text and images show up. I can do this by putting the templates under the actual objects (C:\web\objects\templates\<sitename>) but that's less than ideal. I'd rather store them under the site root. Even when called from a facade CFC, though, the newsletter object looks in its own relative directory when I use cfinclude. Do i have a choice here? Am I going to have to store templates under the C:\web\objects folder? I have a variable that can tell the newsletter object what the site's root is, but that hasn't helped.
Any thoughts?
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
