![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Within myinclude.htm are some links to some other internal web pages. Relative pathes are used. |
|
I think I saw something on this subject before but now can't found it. Apology if this question has been asked before. We have some ssi in the LIBRARY folder just one level down from the root. These ssis' have been incorporated into different templates like: !--#include virtual="/Library/myinclude.htm" -- Within myinclude.htm are some links to some other internal web pages. Relative pathes are used. I found that pages located in folders on the same level as the Library folder working fine. However; those locate on lower level (i.e. root/folder1/folder1a/abc.asp) are composing the links from myinclude.htm wrong. For example a page locates in the root level will have the link composed as http://www.mysite.com/folder1/xyz.asp instead the correct one http://www.mysite.com/xyz.asp Is there anyway around this? Should I place the include file within the editable region of the template and manually edit the include file path? or should I put absoluate pathes for the links within the include file myinclude.htm? thanks, |
#3
| |||
| |||
|
|
Within myinclude.htm are some links to some other internal web pages. Relative pathes are used. Relative to what - root or document? You must use root relative links in your includes. First, please tell me why you are using Library items at all. Then show me the code in a Library item. By the way, attachments are discouraged for this and other Macromedia forums, and to make matters worse, they do not carry forward from the webforums into the NNTP forums, which is where most of the people who post answers are visiting. If you want to broadcast your code so that everyone can see it, the only real way is a) to paste it into a reply (not great if there is lots of code), or b) to upload it somewhere and post a URI to it. Be aware that if you paste voluminous quantities of code into a reply, the code may get truncated when transferring to the NNTP forum. This can be quite confusing to both poster, and reader. The best bet would be to upload the page and post a URI. |
#4
| |||
| |||
|
|
Have tried both. Example codes: !-- MAINFOOTER INCLUDE -- table width="98%" border="0" cellpadding="0" cellspacing="0" id="tblFooter" tr td align="center" class="footer"><br / Copyright © 2004 Company Name, <a href="http://www.xxx.com/">Stockton </a>— San Francisco —<a href="http://www.yyy.com/"> Sacramento</a>, California. <br / All rights reserved | <a href="legal.htm">Legal Notice</a> </td /tr /table !-- MAINFOOTER INCLUDE END -- Legal.htm resides in the root dir. The footer file is in the root/library folder. 1) Tried <a href="legal.htm" --if a page containing the include file is located at root/folder1, the link becomes http://www.mysite.com/folder1/legal.htm --if a page containing the include file is located at root/folder1/folder1a, the link becomes http://www.mysite.com/folder1/folder1a/legal.htm 2) Tried <a href="../legal.htm" --if a page containing the include file is located at root/folder1, the link becomes http://www.mysite.com/legal.htm; the only instance it is correct --if a page containing the include file is located at root/folder1/folder1a, the link becomes http://www.mysite.com/folder1/legal.htm Murray *TMM* wrote: Within myinclude.htm are some links to some other internal web pages. Relative pathes are used. Relative to what - root or document? You must use root relative links in your includes. First, please tell me why you are using Library items at all. Then show me the code in a Library item. By the way, attachments are discouraged for this and other Macromedia forums, and to make matters worse, they do not carry forward from the webforums into the NNTP forums, which is where most of the people who post answers are visiting. If you want to broadcast your code so that everyone can see it, the only real way is a) to paste it into a reply (not great if there is lots of code), or b) to upload it somewhere and post a URI to it. Be aware that if you paste voluminous quantities of code into a reply, the code may get truncated when transferring to the NNTP forum. This can be quite confusing to both poster, and reader. The best bet would be to upload the page and post a URI. |
#5
| |||
| |||
|
|
Create a new file. Insert an image in this file. Don't save the file, but copy the code and paste it into a reply, please. |
#6
| |||
| |||
|
|
Create a new file. Insert an image in this file. Don't save the file, but copy the code and paste it into a reply, please. |
#7
| |||
| |||
|
|
Legal.htm resides in the root dir. The footer file is in the root/library folder. 1) Tried <a href="legal.htm" |
#8
| |||
| |||
|
|
E. Kwong wrote: Legal.htm resides in the root dir. The footer file is in the root/library folder. 1) Tried <a href="legal.htm" Use <a href="/library/legal.htm" Gary |
#9
| |||
| |||
|
|
You think? My head is swimming.... |
|
Legal.htm resides in the root dir. The footer file is in the root/library folder. 1) Tried <a href="legal.htm" |
#10
| |||
| |||
|
|
Murray *TMM* wrote: You think? My head is swimming.... I may have been in too big a hurry. Based on the description: Legal.htm resides in the root dir. The footer file is in the root/library folder. 1) Tried <a href="legal.htm" I now think I was wrong and that it should be: a href="/legal.htm" However, having the "footer file" in the "root/library" folder could also be the cause of some other problems. Gary |
![]() |
| Thread Tools | |
| Display Modes | |
| |