Board index » delphi » Page Produce HTMLFile property

Page Produce HTMLFile property


2007-03-08 04:06:00 PM
delphi261
The PageProduce.HTMLFile property wants to get its file from a local path on
the disk. Is there any way to make a page produce get its file from a URL?
(remote site).
What I want to do is have only my ISAPI on my server and all pages and
images on a remote server. That way my customers can edit their own pages as
long as they retain my tags. I know that I can just give them ftp access to
their own directory but that is not what I want.
Mark Horrocks
 
 

Re:Page Produce HTMLFile property

Mark Horrocks writes:
Quote
The PageProduce.HTMLFile property wants to get its file from a local path on
the disk. Is there any way to make a page produce get its file from a URL?
(remote site).
Sure. Use a TidHTTP component and its Get property.
 

Re:Page Produce HTMLFile property

Mark,
What I did was link the property to the local file to make the IDE happy.
Then I chopped off the beginning part of the path. I don't have the code in
front of me, but I think I made a virtual directory so that the chopped path
was proper relative to the virtual directory.
Hopefully, that gives you a hint as to what to do. If you can not figure
out what the heck I am saying, post another reply and when I get to work I
will check out exactly what I did.
I think it may also have involved iterating through all the webmodule
components looking for pageproducers that had a path and putting the actual
full path in the property when running under the web app de{*word*81} because
wad doesn't allow virtual directories. That code was conditional depending
on if I was running the wad project.