Forums / Install & configuration / Export site content as HTML pages
steve mullen
Monday 02 October 2006 7:07:27 pm
I need to be able to export the entire site as a series of .html pages. This allows me to distribute all content for "off line" use and could also serve as a backup for the web pages should a change in content management systems occur (or a hosting company going away).
The following ez.no URL listed below points to the feature that I specifically need.
http://ez.no/products/ez_publish/info/key_features/performance which has the following description for: -Static content export-eZ publish provides tools to export your entire site directly to HTML. This is useful if you want to serve your pages from static HTML servers or if you want to distribute the contents of your site on CDs.
I have tried searching the Forum and Documentation to no avail. I can't seem to find out specifically how to do the site export. Any ideas.
Ćukasz Serwatka
Monday 02 October 2006 11:15:44 pm
Hi,
In case where you only need export content, then you can use tools like httrack or wget which spidering your site and saves output as static html pages.
If you thinking about rising performance, then using static cache on your page will help/
Detailed instructions about static cache configuration:http://ez.no/download/ez_publish/changelogs/ez_publish_3_6/new_features/static_caching_of_content
See also this forum topic:http://ez.no/community/forum/developer/static_cache_some_user_report_tips
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
David Barber
Friday 03 November 2006 6:57:32 am
Two points on this:
First, why is there anything mentioned about export if there is no export feature? Does the page referenced need to be changed to reflect the actual situation on the ground?
Secord, a request: Has anybody made export with wget work? How did you do it? I've sucked our entire site down as flat html, but the goofy link style is killing me (since all the links have the full URL). This makes it totally unusable, as is, as a flat html site (to be used, for example, on a CD).
Has anyone got a search and replace script that works for this?
Thanks,David
Marco Zinn
Friday 03 November 2006 7:48:04 am
Hi David,
eZpublish does have the abilty to create static HTML pages "on demand" as well as using a script (makestaticcache.php). See the links Lukasz provided. But if you want to use the created HTML pages to create a CD-Version, you will need FTP/shell access to your webserver and you will need to know, which directories are references by the HTML pages.
We are using HTTrack to create static pages of an eZpublish site. HTTrack is quite good at this and has a lot of options to tweak the spidering and creation of the site. Things, that your "HTML-spider software" might have problems with: - Inclusion of CSS-Files with the @import-syntax (you can change your pagelayout to use LINK-Tags instead) - Inclusion of Image files with CSS-styles- Inclusion of Files and Images in Javascript Code (like Mouseover-Images).
All of this depends on the "spidering" software and the complexity of you website design, but we are using HTTrack on an ez 3.8 site (with custom design) on a daily basis.
Marco http://www.hyperroad-design.com