On Saturday 28 November 2009 17:51, Nino Novak wrote:
> On Saturday 28 November 2009 17:27, T. J. Frazier wrote:
> > Nino Novak wrote:
> > > I just noticed that in many places, Pages as well as Templates,
> > > absolute path names were used for links to associated pages. This
> > > makes moving and translation more difficult than if relative path
> > > names were used.
> > >
> > > It's not a great thing, but maybe the one or the other didn't
> > > even know of the possibility to use relative pathnames.
> > >
> > > Nino
> >
> > Thanks for the reminder. I've had the Wiki Editing Policy on my
> > to-do list, for absolute -> relative links, for a week. Finally did
> > it. We want to set a good example.
>
> Just saw that you transformed external -> internal links in a
> document.
>
> But that's not what I meant. What I meant is like in the file system:
> absolute paths start at the root. So e.g. (imaginary)
>   [[Documentation/UserGuide/GettingStarted/chapter1]]
> is an absolute path, while relative paths start with the present
> document's path, so to link to the above Page from another chapter,
> let's say from
>   [[Documentation/UserGuide/GettingStarted/chapter2]]
> you can simply write [[../chapter1]]
>
> The only discrepancy is that path names starting with a slash are
> interpreted as childs from the present document. So from the page
>   [[Documentation/UserGuide/GettingStarted]]
> the link
>   [[/chapter1]] and [[/chapter2]] lead to the above subpages (and do
> not represent absolute pathnames like in dos or unix filesystem
> naming conventions).

The interesting thing is with Templates: if you use relative paths in 
Templates, they are interpreted starting from the page which includes 
the template. 

Nino

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@documentation.openoffice.org
For additional commands, e-mail: dev-h...@documentation.openoffice.org

Reply via email to