Displaying static HTML files in eZpublish

Author Message

Krzysztof Kozlowski

Wednesday 01 June 2005 4:42:30 am

Hello

Is it possible (and how to do it) to display static HTML pages in eZPublish site ? I have a lot of HTML pages so I can't put them into database.

In Mambo Open Source there is a component "StaticXT" which serves HTML and PHP files. Is there something like this for eZpublish ?

P.S. I haven't found anything in http://ez.no/community/contribs .

Krzysiek

kracker (the)

Wednesday 01 June 2005 5:19:28 am

You may always put your static html files in a subdirectory, say example.com/static/

Then add a mod_rewrite in your apache vhost configuration or .htaccess rules to allow access to files inside this subdirectory.

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/static*
RewriteRule !\.(gif|ico|jpe?g|png|css|js)|var(.+)storage.pdf(.+)\.pdf$ index.php

If you must include html content inside of an object (article / product / etc) you may use this contribution.
<i>http://www.ez.no/community/contribs/hacks/embedded_html_for_literal_tag</i>

//kracker

<i>Future of Music Conference : DMCA&u.mp3</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.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 19 2025 11:50:48
Script start
Timing: Jan 19 2025 11:50:48
Module start 'layout'
Timing: Jan 19 2025 11:50:48
Module start 'content'
Timing: Jan 19 2025 11:50:48
Module end 'content'
Timing: Jan 19 2025 11:50:48
Script end

Main resources:

Total runtime0.0182 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.2891152.6406
Module start 'layout' 0.00650.0032 741.929739.4766
Module start 'content' 0.00970.0064 781.406389.4609
Module end 'content' 0.01610.0020 870.867230.3047
Script end 0.0182  901.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.6175140.0002
Check MTime0.00115.9306140.0001
Mysql Total
Database connection0.00126.491610.0012
Mysqli_queries0.002212.246630.0007
Looping result0.00000.110110.0000
Template Total0.00179.310.0017
Template load0.00094.914910.0009
Template processing0.00084.342110.0008
Override
Cache load0.00063.123210.0006
General
dbfile0.00126.551980.0001
String conversion0.00000.036740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs