Getting correct hyperlinks in a DWT

E

Ed Sowell

I'd like a DWT than I can use to generate a page which has

<iframe src="album/index.html" width="1024" height="740"> Please use a
browser that supports iframes </iframe>

in the Body section. Further, I want to put a copy of this page in many
different folders in my Web and have it appear exactly that way in each
place, since the targeted index.html file is always in the "album"
subdirectory where the generated page will be. The problem is, whenever I
put the generated page into a any folder other than the
folder where the DWT file is FP will recalculate the link address. IOW, once
the generated page is where I want it there will be:

<iframe src="../Templates/album/index.html" width="1024" height="740">
Please use a browser that supports iframes </iframe>

This happens no matter how I get the generated plage to the wanted folder,
i.e., I get the same result if I created it in its final location or create
it in the Template folder and move it to the final location.

Is there any way I can force FP to NOT recalculate the link when the
generated page is moved?




TIA,

Ed
 
S

Stefan B Rusynko

If your site supports parent pathing try using a parent path
<iframe src="/album/index.html" width="1024" height="740"> Please use a
browser that supports iframes </iframe>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| I'd like a DWT than I can use to generate a page which has
|
| <iframe src="album/index.html" width="1024" height="740"> Please use a
| browser that supports iframes </iframe>
|
| in the Body section. Further, I want to put a copy of this page in many
| different folders in my Web and have it appear exactly that way in each
| place, since the targeted index.html file is always in the "album"
| subdirectory where the generated page will be. The problem is, whenever I
| put the generated page into a any folder other than the
| folder where the DWT file is FP will recalculate the link address. IOW, once
| the generated page is where I want it there will be:
|
| <iframe src="../Templates/album/index.html" width="1024" height="740">
| Please use a browser that supports iframes </iframe>
|
| This happens no matter how I get the generated plage to the wanted folder,
| i.e., I get the same result if I created it in its final location or create
| it in the Template folder and move it to the final location.
|
| Is there any way I can force FP to NOT recalculate the link when the
| generated page is moved?
|
|
|
|
| TIA,
|
| Ed
|
|
|
|
|
|
 
E

Ed Sowell

Thanks, Stefan. I wasn't familiar with the term so I did a Google, finding
the page:

http://ase.tufts.edu/its/webDtParentPaths.htm

If I understand correctly, what you show is called Root Relative pathing.
Parent path would be ../

However, neither seems to help.

Also, I now believe the problem has nothing to do with DWT. It is FP itself
that always "corrects" the hyperlink paths when a file is moved or copied to
a different folder, regardless of how the file was created.

Ed
 
T

Thomas A. Rowe

The solution is to export the file (as you want it) to your desktop from FP, then import it back via
FP into each folder via drag-n-drop.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================


Ed Sowell said:
Thanks, Stefan. I wasn't familiar with the term so I did a Google, finding the page:

http://ase.tufts.edu/its/webDtParentPaths.htm

If I understand correctly, what you show is called Root Relative pathing. Parent path would be
../

However, neither seems to help.

Also, I now believe the problem has nothing to do with DWT. It is FP itself that always "corrects"
the hyperlink paths when a file is moved or copied to a different folder, regardless of how the
file was created.

Ed


Stefan B Rusynko said:
If your site supports parent pathing try using a parent path
<iframe src="/album/index.html" width="1024" height="740"> Please use a
browser that supports iframes </iframe>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| I'd like a DWT than I can use to generate a page which has
|
| <iframe src="album/index.html" width="1024" height="740"> Please use a
| browser that supports iframes </iframe>
|
| in the Body section. Further, I want to put a copy of this page in many
| different folders in my Web and have it appear exactly that way in each
| place, since the targeted index.html file is always in the "album"
| subdirectory where the generated page will be. The problem is, whenever I
| put the generated page into a any folder other than the
| folder where the DWT file is FP will recalculate the link address. IOW, once
| the generated page is where I want it there will be:
|
| <iframe src="../Templates/album/index.html" width="1024" height="740">
| Please use a browser that supports iframes </iframe>
|
| This happens no matter how I get the generated plage to the wanted folder,
| i.e., I get the same result if I created it in its final location or create
| it in the Template folder and move it to the final location.
|
| Is there any way I can force FP to NOT recalculate the link when the
| generated page is moved?
|
|
|
|
| TIA,
|
| Ed
|
|
|
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top