Export site content as HTML pages

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:15:46
Script start
Timing: Jan 18 2025 18:15:46
Module start 'layout'
Timing: Jan 18 2025 18:15:46
Module start 'content'
Timing: Jan 18 2025 18:15:47
Module end 'content'
Timing: Jan 18 2025 18:15:47
Script end

Main resources:

Total runtime1.3865 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.0391152.6406
Module start 'layout' 0.00750.0035 740.679739.4766
Module start 'content' 0.01101.3740 780.1563632.7344
Module end 'content' 1.38500.0014 1,412.890612.1406
Script end 1.3864  1,425.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2446160.0002
Check MTime0.00140.1010160.0001
Mysql Total
Database connection0.00140.102510.0014
Mysqli_queries1.323295.4378640.0207
Looping result0.00080.0563620.0000
Template Total1.342796.820.6714
Template load0.00220.159820.0011
Template processing1.340596.686020.6703
Template load and register function0.00030.021110.0003
states
state_id_array0.00080.054510.0008
state_identifier_array0.00280.201320.0014
Override
Cache load0.00180.1321360.0001
Sytem overhead
Fetch class attribute can translate value0.00110.081440.0003
Fetch class attribute name0.00190.134360.0003
XML
Image XML parsing0.00120.085240.0003
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00190.1343240.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs