cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating static HTML pages to Alfresco

markus
Champ in-the-making
Champ in-the-making
Hi,

I would like to migrate a static web site to Alfresco. Import works fine with CIFS but links embedded in HTML pages break. Is there a way in Alfresco to "redirect" page requests, e.g. have /intranet/index.html resolve such that the  "index.html" page in the "intranet" space gets loaded?
I understand that the context root will have to be added externally via URL rewriting.
It would be great to get this working with presentation templates.

Regards,
  Markus
2 REPLIES 2

bartr
Champ in-the-making
Champ in-the-making
You can rewrite the url with prefix /alfresco/webdav/ and thus get /alfresco/webdav/intranet/index.html, which simply returns the index.html document located in space intranet under alfresco's root.

markus
Champ in-the-making
Champ in-the-making
Hi bartr,

thanks for the answer - the suggested approach is a good idea, but might be a little too restrictive: I would like to apply different templates to folder nodes and document nodes to always display a search box and feedback button, breadcrumbing, and display not only the children of a space but sometimes a tree with limited depth (up to three levels).

The WebDAVServlet class contains code to translate a path to a node reference - guess that and URL rewriting should allow me to do what I am looking for.

Regards,
  Markus