There is website for a conference using relative paths to reference resources.
The content of existing pages are maintained as XML files (containing HTML formatted text)
There is one main template that defines the basic layout: header, footer, and a menu. Links defined here use relative paths.
This template, an XSL file, is applied to all content pages to transform them into HTML-files. Until now all pages of the website have been located in the same folder.
The challenge:
A foto gallery shall be integrated into the website.
It was generated with an arbitrary tool (e.g. Adobe Lightroom) that organises images and referencing pages in a folder hierarchy of multiple levels.
An example: A foto gallery with an album overview, and two alums: Reception and Dinner
- Album Overview
| . index.html :with a link to each album, thumbnail
L Reception
| . index.html (with thumbnails of all fotos, linked to detailed view)
| L detailed
| | . IMG_001.html
| | . IMG_012.html
| | . IMG_...
| L fotos
| | . IMG_001.jpg
| | . IMG_012.jpg
| | . IMG_...
L Dinner
| . index.html (with thumbnails of all fotos, linked to detailed view)
| L detailed
| | . IMG_011.html
| | . IMG_015.html
| | . IMG_...
| L fotos
| | . IMG_011.jpg
| | . IMG_015.jpg
| | . IMG_...
<ul>
Problems:
<li>These pages should follow the general layout</li>
<li>These pages depend on the generated folder structure, so they can't be moved</li>
<li>When the layout template is applied to the files of the gallery, the links (menu!) defined in there are <em>broken</em> (as they are relative references)</li>
</ul>
Find a way to integrate these pages, so they use the same layout template, and links with relative paths are still working.