Thanks, I thought this might be the only way. So it's the path I'm on.
Thanks again,
- Charles
On Feb 11, 2007, at 11:03 AM, Casey Dougall wrote:
> I'd recomend doing the opisite. When the user creates a page, you
> actually
> create a real page on the server in that directory.
>
> When the page is called you might have the first statement in the
> file be
> <cfset pageid = 3>
> Now the database knows which content to display.
>
> This also assists when a page gets moved or deleted. you can re-
> create the
> page with additional text when something like that happens.
>
> <CFPARAM name="SavePath" default="#ExpandPath("/Linux/downloads")#">
>
> <CFIF NOT DirectoryExists(SavePath)>
> <CFDIRECTORY Action="Create" Directory="#SavePath#">
> </CFIF>
>
> <CFSET sFileOutput = "">
> <CFFILE Action="Write" File="#SavePath#/#Form.FileName#"
> Output="#sFileOutput#">
>
> <cffile action="APPEND" file="="#SavePath#/#Form.FileName#output="
> <cfset PageID=""#FORM.GetPageID#"" />
> <cfinclude template=""/Includes/Global-Header.cfm"">
> <cfinclude template=""/Includes/Global-Footer.cfm"">
> " addnewline="Yes">
>
> Or if the file was moved
>
> <CFSET sFileOutput = "">
> <CFFILE Action="Write" File="#OldFileFolder#/#Form.FileName#"
> Output="#sFileOutput#">
> <cffile action="APPEND" file="#OldFileFolder#/#Form.FileName#"
> output="
> <cfheader statuscode=""301"" statustext=""Moved permanently"">
> <cfheader name=""Location"" value=""#NewFolder#//
> #Form.cmsFile#"">
> <cfabort>" addnewline="Yes">
>
> Casey
> On 2/11/07, Charles Heizer <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>> I'm trying to come up with a soltuion which I'm not sure if
>> Coldfusio can
>> solve for me. I'm createing a app which is a total site admin tool
>> which
>> would allow my groups to create their site using my tool. I'm
>> storing all of
>> the page(s) info in a database so it can be edited and updated; so
>> the site
>> pages don't go stale.
>>
>> What I'm looking for is a way to translate a url path which is
>> virtual in
>> to a real page ...
>>
>> http://www.foo.com/Software/Linux/downloads to something like
>> http://www.foo.com/index.cfm?page=LinuxDownloads
>>
>> Is this possible and if so can someone point me in the right
>> direction.
>>
>> Thanks,
>> - Charles
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269528
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4