How to create a static page to an existing ez system?

Author Message

Anoop V

Tuesday 15 September 2009 12:21:45 pm

I have a website say xyz.com running in ez publish.I want to create an entirely new static html page say "info.html" page(which has its own images,javascript,css etc..).So after adding this page the url "xyz.com/info.html" should display this page.Thanks in advance.

Patrick Kaiser

Tuesday 15 September 2009 3:10:03 pm

Two options:

1) Via eZ publish:
- Create a new Object (e.g. from Folder class) with desired name, e.g. http://xyz.com/info
- Create an override rule in override.ini.append.php for this newly created node

# Override for my static page
[static_page]
Source=node/view/full.tpl
MatchFile=my-static-page.tpl
Subdir=templates
Match[node]=<node_id>

- place your template in yourdesign/override/templates/my-static-page.tpl and put your desired html-code in it
- you may also want to have a different pagelayout.tpl, so repeat the last two steps for pagelayout.tpl
- clear the cache

2) via apache:
- just place the info.html, images + css where you want on your webserver, e.g. /info.html /info/styles.css /info/image.png
- update your apache rewrite rules and add the following to your vhost config:

RewriteRule ^/info\.html - [L]
RewriteRule ^/info/.* - [L]

Hope this helps.


Best regards,

Patrick

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 04:57:16
Script start
Timing: Jan 18 2025 04:57:16
Module start 'layout'
Timing: Jan 18 2025 04:57:16
Module start 'content'
Timing: Jan 18 2025 04:57:17
Module end 'content'
Timing: Jan 18 2025 04:57:17
Script end

Main resources:

Total runtime1.1255 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1563152.6406
Module start 'layout' 0.00550.0038 741.796939.4922
Module start 'content' 0.00931.1150 781.2891526.7891
Module end 'content' 1.12440.0011 1,308.07818.1250
Script end 1.1255  1,316.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2932160.0002
Check MTime0.00140.1246160.0001
Mysql Total
Database connection0.00070.065510.0007
Mysqli_queries1.077395.7156540.0199
Looping result0.00050.0420520.0000
Template Total1.092897.120.5464
Template load0.00210.190420.0011
Template processing1.090696.902220.5453
Template load and register function0.00020.017710.0002
states
state_id_array0.00140.120710.0014
state_identifier_array0.00120.106420.0006
Override
Cache load0.00180.1625190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.053520.0003
Fetch class attribute name0.00180.161730.0006
XML
Image XML parsing0.00230.202120.0011
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00230.2043160.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs