Using a seperate template for a mini-site (for a beginner)

Author Message

Jason Schmidt

Thursday 13 April 2006 1:00:42 pm

I'm working on a small Cultural website, that features a large number of events in my City, and I'm trying to set up a minisite somewhere within the existing EZpublisher website. This portal is completely run by eZ publisher, and the first problem I've come across is that I can't get our content to show on the site.

Can someone give me an idea as to how we can get this HTML site to work independantly of the eZ platform, as we already have the site done, but after uploading it to a subdirectory, I got a problem saying it couldn't find the module. I learned why this was, and set up a folder using the Control Panel, and a basic page, but due to the coloums set up on the pre-existing template, I can't really just export my code as.

I'm guessing I need to make a new template, at least without the pesky coloumns, but I have no idea how to just get a regular XHTML page to get loaded, when i pull up the subdirectory.

Can someone try and help me break this down, I've read the docu, and it doesn't explain how to do anything along these lines.

Betsy Gamrat

Thursday 13 April 2006 5:31:26 pm

Jason,

You might want to put some links to your site up.

Mark Marsiglio

Friday 14 April 2006 2:59:08 am

It sounds like you want to add static HTML files to a directory that eZ thinks it has control over. Hence, the system looks into the node structure for that page, but none exists because it is outside the database in static files.

If this is the case, you will need to exclude the directory containing your files using an .htaccess. If you are using the provided .htaccess file, there are probably already several directories that are set up this way (i.e. design/*/images/). You can just copy and paste one of these lines in the .htaccess, and change the name of the excluded folder to your own.

RewriteRule ^minisitedirectory\.* - [L]

or

RewriteRule ^path/to/minisitedirectory\.* - [L]

We use an .htaccess file found here in the forums
http://ez.no/community/forum/install_configuration/htaccess_hidden_at_last/
in the 6th post (from Ekkehard)

Toward the end there is a long list of rewrite rules, and you can just add the line above (obviously changing the location of the directory to your own).

If you already have the pages created in HTML, this will certainly be the easiest way to go. However, you should be aware of the limitations, such as the potential lack of consistency between your pages and the main site, exclusion from the search results and main navigation, and possibiilty of broken links.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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 19:14:38
Script start
Timing: Jan 18 2025 19:14:38
Module start 'layout'
Timing: Jan 18 2025 19:14:38
Module start 'content'
Timing: Jan 18 2025 19:14:38
Module end 'content'
Timing: Jan 18 2025 19:14:38
Script end

Main resources:

Total runtime0.7181 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1719152.6563
Module start 'layout' 0.00580.0027 740.828139.5078
Module start 'content' 0.00850.7085 780.3359582.2188
Module end 'content' 0.71700.0011 1,362.554712.0938
Script end 0.7181  1,374.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4085160.0002
Check MTime0.00120.1649160.0001
Mysql Total
Database connection0.00080.112210.0008
Mysqli_queries0.667993.0024590.0113
Looping result0.00060.0800570.0000
Template Total0.686795.620.3433
Template load0.00170.234920.0008
Template processing0.685095.386920.3425
Template load and register function0.00020.021610.0002
states
state_id_array0.00100.136010.0010
state_identifier_array0.00070.103820.0004
Override
Cache load0.00140.1964230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.084530.0002
Fetch class attribute name0.00370.517450.0007
XML
Image XML parsing0.00100.135830.0003
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00080.1063210.0000
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs