[Zope] Don't use relative links!

2000-08-18 Thread Chris Withers

Stuart Foster wrote:
 However if I traverse the two folders sometimes the URL looks like
 
 mainfolder/subfolder/subfolder/subfolder/index_html
 
 Why..

somewhere on one of you pages you have a link something like
a href="subfolder/index_html"

that's a relative link and thanks to the magic of the Zope automatically
inserted BASE tag (yurch!) will actually be a link to:
http://yoursite.com/mainfolder/subfolder/subfolder/index_html

so, the above should actually be:

a href="dtml.url-subfolder/index_html"

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Don't use relative links!

2000-08-18 Thread Chris Withers

Chris Withers wrote:
 so, the above should actually be:
 
 a href="dtml.url-subfolder/index_html"

erk :S

a href="dtml.url-subfolder;/index_html"
   ^^^

sorry,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Don't use relative links!

2000-08-18 Thread Stuart Foster

Where can I find more information on how this is done. I'm not familiar with
the dtml. notation?

Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Withers
Sent: Friday, August 18, 2000 11:59 AM
To: Stuart Foster; Zope List
Subject: Re: [Zope] Don't use relative links!


Chris Withers wrote:
 so, the above should actually be:

 a href="dtml.url-subfolder/index_html"

erk :S

a href="dtml.url-subfolder;/index_html"
   ^^^

sorry,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Don't use relative links!

2000-08-18 Thread Kapil Thangavelu

Stuart Foster wrote:


 
 Where can I find more information on how this is done. I'm not familiar with
 the dtml. notation?
 

 
 Chris Withers wrote:
  so, the above should actually be:
 
  a href="dtml.url-subfolder/index_html"
 
 erk :S
 
 a href="dtml.url-subfolder;/index_html"
^^^

its referred to as the entity syntax of dtml. its mainly for saving
typing in urls. the . syntax is standard attribute access of python. try
a search on zope.org for entity syntax. i believe there is a doc in jim
fulton's members folder that does some explaining, probably a how to as
well.

Kapil

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )