PC Review


Reply
Thread Tools Rate Thread

Absolute paths on local FP web -- how to?

 
 
Graham Wideman \(Visio MVP\)
Guest
Posts: n/a
 
      8th Nov 2003
Folks:

I'd like to be able to use FrontPage (2002) to work on webs on the local
file system. FP works fine it all links within the web are relative.

But there's a problem with absolute links because FP retrieves those files
using the literal path in the URL, rather than relative to the root of the
web... and this is what I'd like to work around.

Example:
FP Web at D:\myweb, with some images in D:\myweb\images

If page D:\myweb\somepage.htm contains a link to /images/some.gif, then FP
will look for it at D:\images\some.gif, instead of at
D:\myweb\images\some.gif -- in a sense this is correct behavior if the
intent was to set up pages that IE can browse locally -- but it prevents
using local editing to simulate deployed web.

So, although the web will work fine when deployed, it doesn't work while
editing locally.

I attempted to work around this by creating a web at the root directory of
the drive (actually a subst drive), but FP refuses to set up web in a root
directory.

(When I try to start a blank web at "W:\", I get an error dialog: "There is
no web named /W".)

Any suggestions as to how to do what I'm trying to do?

(OK, one workaround is to set up IIS on local machine -- but I'd rather
avoid that effort and security hazard... this should be easy!)

Thanks,

Graham

--
-----------------------------------------
Graham Wideman
Visio 2002 Developer's Survival Pack
diagramantics.com


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Nov 2003
Make sure you have a web open in FP at all times and if creating a new web,
it must be a folder. All links need be enter as ../images/etc.jpg etc.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Graham Wideman (Visio MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Folks:
>
> I'd like to be able to use FrontPage (2002) to work on webs on the local
> file system. FP works fine it all links within the web are relative.
>
> But there's a problem with absolute links because FP retrieves those files
> using the literal path in the URL, rather than relative to the root of the
> web... and this is what I'd like to work around.
>
> Example:
> FP Web at D:\myweb, with some images in D:\myweb\images
>
> If page D:\myweb\somepage.htm contains a link to /images/some.gif, then FP
> will look for it at D:\images\some.gif, instead of at
> D:\myweb\images\some.gif -- in a sense this is correct behavior if the
> intent was to set up pages that IE can browse locally -- but it prevents
> using local editing to simulate deployed web.
>
> So, although the web will work fine when deployed, it doesn't work while
> editing locally.
>
> I attempted to work around this by creating a web at the root directory of
> the drive (actually a subst drive), but FP refuses to set up web in a root
> directory.
>
> (When I try to start a blank web at "W:\", I get an error dialog: "There

is
> no web named /W".)
>
> Any suggestions as to how to do what I'm trying to do?
>
> (OK, one workaround is to set up IIS on local machine -- but I'd rather
> avoid that effort and security hazard... this should be easy!)
>
> Thanks,
>
> Graham
>
> --
> -----------------------------------------
> Graham Wideman
> Visio 2002 Developer's Survival Pack
> diagramantics.com
>
>



 
Reply With Quote
 
Graham Wideman \(Visio MVP\)
Guest
Posts: n/a
 
      8th Nov 2003
Thomas:

I think you missed the point. Sure, relative links work on local file
system. But I need absolute links to work too.

Why? Because I have some clusters of pages that are used on different sites
that need to point to images and other pages that are at some fixed location
on each site, while the refering pages may be in different locations --
hence relative links don't work.

For example, I have software autogenerate some pages that should all
incorporate a site-specific logo, eg: from /images/logo.gif.

But the generator software doesn't know where those pages will be located,
hence can't generate relative link. (This is just one example of the
problem.)

So I ask again -- how do you get FP to create a web at root level of a drive
(eg: using W:\index.htm as home page)... or alternatively get FP to load
absolute URLs relative to web's root dir?

Graham

--
-----------------------------------------
Graham Wideman
Visio 2002 Developer's Survival Pack
diagramantics.com
"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Make sure you have a web open in FP at all times and if creating a new

web,
> it must be a folder. All links need be enter as ../images/etc.jpg etc.
>
> --
>
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, Forums, WebCircle,
> MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Graham Wideman (Visio MVP)" <(E-Mail Removed)> wrote in

message
> news:(E-Mail Removed)...
> > Folks:
> >
> > I'd like to be able to use FrontPage (2002) to work on webs on the local
> > file system. FP works fine it all links within the web are relative.
> >
> > But there's a problem with absolute links because FP retrieves those

files
> > using the literal path in the URL, rather than relative to the root of

the
> > web... and this is what I'd like to work around.
> >
> > Example:
> > FP Web at D:\myweb, with some images in D:\myweb\images
> >
> > If page D:\myweb\somepage.htm contains a link to /images/some.gif, then

FP
> > will look for it at D:\images\some.gif, instead of at
> > D:\myweb\images\some.gif -- in a sense this is correct behavior if the
> > intent was to set up pages that IE can browse locally -- but it prevents
> > using local editing to simulate deployed web.
> >
> > So, although the web will work fine when deployed, it doesn't work while
> > editing locally.
> >
> > I attempted to work around this by creating a web at the root directory

of
> > the drive (actually a subst drive), but FP refuses to set up web in a

root
> > directory.
> >
> > (When I try to start a blank web at "W:\", I get an error dialog: "There

> is
> > no web named /W".)
> >
> > Any suggestions as to how to do what I'm trying to do?
> >
> > (OK, one workaround is to set up IIS on local machine -- but I'd rather
> > avoid that effort and security hazard... this should be easy!)
> >
> > Thanks,
> >
> > Graham
> >
> > --
> > -----------------------------------------
> > Graham Wideman
> > Visio 2002 Developer's Survival Pack
> > diagramantics.com
> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Nov 2003
The only way to get FP to support absolute URLs, which it can not manage if
you later change the location of the object, is to create a link from within
FP to the object on the remote server.

FP will not let you create a web at the root of drive, since when FP98 was
first released, user where converting their C drive to root web, and then
when they delete the web, they also delete the content on their C drive, so
you have to work with a folder off of the root of the drive.

If you were working via IIS, then I have a ASP solution, but it requires all
pages to be .asp.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Graham Wideman (Visio MVP)" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Thomas:
>
> I think you missed the point. Sure, relative links work on local file
> system. But I need absolute links to work too.
>
> Why? Because I have some clusters of pages that are used on different

sites
> that need to point to images and other pages that are at some fixed

location
> on each site, while the refering pages may be in different locations --
> hence relative links don't work.
>
> For example, I have software autogenerate some pages that should all
> incorporate a site-specific logo, eg: from /images/logo.gif.
>
> But the generator software doesn't know where those pages will be located,
> hence can't generate relative link. (This is just one example of the
> problem.)
>
> So I ask again -- how do you get FP to create a web at root level of a

drive
> (eg: using W:\index.htm as home page)... or alternatively get FP to load
> absolute URLs relative to web's root dir?
>
> Graham
>
> --
> -----------------------------------------
> Graham Wideman
> Visio 2002 Developer's Survival Pack
> diagramantics.com
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Make sure you have a web open in FP at all times and if creating a new

> web,
> > it must be a folder. All links need be enter as ../images/etc.jpg etc.
> >
> > --
> >
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, Forums, WebCircle,
> > MS KB Quick Links, etc.
> > ==============================================
> > To assist you in getting the best answers for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> > "Graham Wideman (Visio MVP)" <(E-Mail Removed)> wrote in

> message
> > news:(E-Mail Removed)...
> > > Folks:
> > >
> > > I'd like to be able to use FrontPage (2002) to work on webs on the

local
> > > file system. FP works fine it all links within the web are relative.
> > >
> > > But there's a problem with absolute links because FP retrieves those

> files
> > > using the literal path in the URL, rather than relative to the root of

> the
> > > web... and this is what I'd like to work around.
> > >
> > > Example:
> > > FP Web at D:\myweb, with some images in D:\myweb\images
> > >
> > > If page D:\myweb\somepage.htm contains a link to /images/some.gif,

then
> FP
> > > will look for it at D:\images\some.gif, instead of at
> > > D:\myweb\images\some.gif -- in a sense this is correct behavior if the
> > > intent was to set up pages that IE can browse locally -- but it

prevents
> > > using local editing to simulate deployed web.
> > >
> > > So, although the web will work fine when deployed, it doesn't work

while
> > > editing locally.
> > >
> > > I attempted to work around this by creating a web at the root

directory
> of
> > > the drive (actually a subst drive), but FP refuses to set up web in a

> root
> > > directory.
> > >
> > > (When I try to start a blank web at "W:\", I get an error dialog:

"There
> > is
> > > no web named /W".)
> > >
> > > Any suggestions as to how to do what I'm trying to do?
> > >
> > > (OK, one workaround is to set up IIS on local machine -- but I'd

rather
> > > avoid that effort and security hazard... this should be easy!)
> > >
> > > Thanks,
> > >
> > > Graham
> > >
> > > --
> > > -----------------------------------------
> > > Graham Wideman
> > > Visio 2002 Developer's Survival Pack
> > > diagramantics.com
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Repost: absolute paths when using "View in Browser" on local port Amil Hanish Microsoft ASP .NET 0 26th Jul 2006 01:49 AM
absolute paths when using "View in Browser" on local port Amil Hanish Microsoft ASP .NET 1 17th Jul 2006 12:58 AM
use absolute paths in Access =?Utf-8?B?SmVtcGlC?= Microsoft Access VBA Modules 3 22nd Mar 2005 09:43 PM
Site absolute paths? Julie Microsoft ASP .NET 2 13th May 2004 04:39 PM
Absolute/Relative paths? denisecook Microsoft Excel Worksheet Functions 3 10th May 2004 08:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 PM.