HighDots Forums  

ssi within template

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss ssi within template in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
E. Kwong
 
Posts: n/a

Default ssi within template - 08-06-2004 , 03:08 PM






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,


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: ssi within template - 08-06-2004 , 03:58 PM






Quote:
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.


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"E. Kwong" <ekwong999 (AT) hotmail (DOT) com> wrote

Quote:
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,




Reply With Quote
  #3  
Old   
E. Kwong
 
Posts: n/a

Default Re: ssi within template - 08-06-2004 , 05:21 PM



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 &copy; 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:

Quote:
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.




Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: ssi within template - 08-06-2004 , 05:24 PM



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.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"E. Kwong" <ekwong999 (AT) hotmail (DOT) com> wrote

Quote:
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 &copy; 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.






Reply With Quote
  #5  
Old   
E. Kwong
 
Posts: n/a

Default Re: ssi within template - 08-06-2004 , 05:34 PM



Don't understand. I COPY AND PASTE 9 lines of code into the reply!!!!
I'm using Netscape 7.1 to view the forum. Is it sending something weird???

Murray *TMM* wrote:

Quote:
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.



Reply With Quote
  #6  
Old   
E. Kwong
 
Posts: n/a

Default Re: ssi within template - 08-06-2004 , 05:50 PM



I don't know how you view the posts at your end, but every one of my
posts displayed clearly and not a single alphabet is truncated (in
Netscape). I never sent any attachment.

Murray *TMM* wrote:

Quote:
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.



Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: ssi within template - 08-06-2004 , 07:17 PM



E. Kwong wrote:

Quote:
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


Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: ssi within template - 08-07-2004 , 09:02 AM



Gary:

You think? My head is swimming....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Gary White" <reply (AT) newsgroup (DOT) please> wrote

Quote:
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



Reply With Quote
  #9  
Old   
Gary White
 
Posts: n/a

Default Re: ssi within template - 08-07-2004 , 12:10 PM



Murray *TMM* wrote:

Quote:
You think? My head is swimming....

I may have been in too big a hurry. Based on the description:

Quote:
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


Reply With Quote
  #10  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: ssi within template - 08-07-2004 , 12:49 PM



Yeah - the whole design of the pages and the sites has me confused, frankly.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Gary White" <reply (AT) newsgroup (DOT) please> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.