Forums / Install & configuration / Export site content as HTML pages

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

eZ debug

Timing: Jan 18 2025 15:00:30
Script start
Timing: Jan 18 2025 15:00:30
Module start 'content'
Timing: Jan 18 2025 15:00:30
Module end 'content'
Timing: Jan 18 2025 15:00:30
Script end

Main resources:

Total runtime0.1814 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0132 587.8359180.8203
Module start 'content' 0.01320.0056 768.656397.9297
Module end 'content' 0.01880.1626 866.5859526.8281
Script end 0.1814  1,393.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.9531200.0002
Check MTime0.00140.7946200.0001
Mysql Total
Database connection0.00060.305410.0006
Mysqli_queries0.136475.15331410.0010
Looping result0.00201.09561390.0000
Template Total0.162289.410.1622
Template load0.00100.550610.0010
Template processing0.161288.851210.1612
Override
Cache load0.00070.377010.0007
Sytem overhead
Fetch class attribute can translate value0.00080.435810.0008
XML
Image XML parsing0.00030.171310.0003
General
dbfile0.00301.6740200.0002
String conversion0.00000.005030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs