Question
How can I INCLUDE a local file from a Windows System into a page like a TWiki.Web.
The example for a HTML file is given, I am searching for an example of a local file.
Is this or something possible?:
%INCLUDE{"C/win/test.html"}%
Or is it not possible to include a local file??
- TWiki version: 01.12.2001
- Perl version: ???
- Web server & version: Apache 1.3.??
- Server OS: Linux - Suse 6.0
- Web browser & version: Phoenix
- Client OS: Windows NT 4; SP6a
--
HerbertJanko - 30 Jan 2003
Answer
Can't be done with TWiki features, but may be possible using HTML - check out the IFRAME command using a
file://c:/foo.html
type URL.
--
RichardDonkin - 31 Jan 2003
I'm curious as to what you are trying to do -- I can imagine two possibilities:
- You are attempting to customize the TWiki display of a certain page -- everyone (or every computer) who uses your twiki would see a different C:\win\test.html -- an interesting idea, maybe RichardDonkin's suggestion will do what you want.
- Maybe you maintain a public and private TWiki (like I do) and you have some information on your private TWiki that pertains to (or you want to be reminded of) from the public TWiki. In such cases, I plan to start inserting URLs of the form http://192.168.0.8/w/view/Wiki/WebHome
-- I think I would get easy access to the information, but no one else could (as long as I maintain a firewall, and maybe even if I don't).
There could be confusion for other people that use a TWiki on a machine with IP 192.168.0.8.
Note another possibility might be to use a URL with an IP of 127.0.0.1 (or whatever the loopback IP is) of course you would have to have at least an http server on that machine.)
Note that this is a test -- I'll see if the previous URL works after I save this page -- depending on the results, maybe others will confirm that they can't follow the link to WebHome on my private TWiki (and somebody else will test it as an INCLUDE, or I may, sometime in the future).
Followup: That seems to work (without trying the INCLUDE -- at some point I'll try the INCLUDE). If I use links above I'd probably show them something like this
rhk private WebHome
. Some reasons to do so include:
- Confidential information on my private TWiki
- Information that I can't publish on a public TWiki -- maybe a derived work from a copyrighted work that I haven't yet obtained permission to publish.
Sorry, I clearly got OT here, but I suspect that you might be able to include a local file as long as it is available via a local URL. Good luck, let us know if you are successful (or if this just doesn't meet your needs at all) -- at some point I should move this stuff to a different topic. Suggestions?
--
RandyKramer - 31 Jan 2003