Hi,

Perhaps it is an easy thing to do, but what happens if you stage your sites
(dev, qa, certification, live) or have a distribution of software you want
to document (you want the HTML to work wherever the user downloads it). Or
perhaps you want to hand it off to your boss to look over on her flight to
Hawaii.

I don't see passing a parameter working, either. Do you have to pass params
for each link on each generated page?

What happens when you want to swap pages and folders around? If you
referenced all you your links by ID, then get in the context of that page in
a site 'map' and recursively find your path - you will always have accurate
links.

I don't see an easier way to maintain link integrity.

best,
-Rob


-----Original Message-----
From: Ivan Luzyanin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 12:45 AM
To: Cocoon-users mailing list
Subject: Re: Common practice: how to keep links to html-trees consistent


Easiest solusion is to use <head><BASE href="...">...</head> in your
generated pages

Ivan.
P.S.  http://www.w3.org/TR/REC-html32.html#base

On Mon, 2002-08-19 at 23:42, Koen Pellegrims wrote:
> Guys,
>
> This is something that most of you *must* have come across at one point or
> another, and I am just looking for the best solution (I know it is not
> really a Cocoon-question, but Cocoon might provide some nice and elegant
> solution for this...)
>
> Menu on my site that contains a link to the index-page (index.html)  and
> links to (among others) a product-page. In the page-hierarchy, the
> product-pages are contained within a 'products' directory.
>
> index.html
> products/productA.html
> products/productB.html
>
> The problem arises when I display this menu on a product page, because the
> browser (rightly so) interprets 'index.html' as being relative to the
> 'products'-directory.
>
> So, whereas the link to 'index.html' is correct from the index-page, it
> refers to 'products/index.html' on any product page. (and even worse: a
link
> to productA suddenly becomes a link to products/products/productsA.html)
>
> My question is simple: did any of you encounter this problem? And -of
> course- how did you solve it?
>
> Koen


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to