how to install a new template?

Author Message

Tony Wang

Thursday 20 July 2006 11:35:32 am

I did a search in the documentation area but found no guide for installing new templates for eZ Publish.

anyone can guide me to install new templates?

thanks a lot

Egil Fujikawa Nes

Thursday 20 July 2006 8:11:49 pm

Hi Tony

A very short guide for the template system:

- In $ez_root/design/ you should have four folders after a standard installation: admin, base, standard and one more with your sites name (for example: shop)

- If you want to make a new template that override the standard template of for example the class folder, you should open your administration interface Design -> Templates and click on the /node/view/full.tpl that you will find in the list under Most common templates.

- Choose the right siteaccess for your public site, for example: shop

- In the bottom of the list you find the button New override.

- Now you need to give the new override a name (for example: new_folder.tpl) and a class: folder

When this is done you have been creating a new template under $ez_root/design/shop/override/templates/ that is named new_folder.tpl and this can be edited both form the administration interface and from a Linux shell or FTP client.

PS: It's important that the new override template has a higher priority in the priority list then the standard full_folder to make the new template override the old one.

I recommend you to reed more here: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_override_system/template_override_example

Best regards
Egil Fujikawa Nes

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Tony Wang

Friday 21 July 2006 10:30:43 am

thanks for the reply.

I found installation of templates is so complicated. Is this because eZ Publish is an enterprise CMS??? It shouldn't be this complicated though :(

I got some more questions for you:

I downloaded a template that is compatible with 3.5 version. The suffix of the downloaded template package is .ezpkg, I don't know how I should handle this file? upload it to where? so confusing.

thanks a lot

Marcin Drozd

Friday 21 July 2006 2:23:09 pm

I downloaded a template that is compatible with 3.5 version. The suffix of the downloaded template package is .ezpkg, I don't know how I should handle this file? upload it to where? so confusing.

Hi Tony
to upload ez package U should go to admin interface and select:
Setup (top menu) -> Packages (left menu) -> Import new package
good luck

http://ez-publish.pl

Tony Wang

Friday 21 July 2006 10:58:05 pm

thanks Marcin. I have successfully imported an ez package (template downloaded from this site's contribution section, called structural, compatible with 3.5+). But when I overwrite the site access with this new template, my site crashed -- looks very ugly. I guess there's something wrong with applying the new template. can you please tell me how to apply the new imported template?

thanks a million!

Marcin Drozd

Saturday 22 July 2006 12:44:35 am

HI
After upload a new site style U should:
- go to "Design->Look and feel" and choose your imported template from Sitestyle list
- send to publishing
- clear cache (important)
I've tested this one and it worked (for me :) )

http://ez-publish.pl

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 11:39:53
Script start
Timing: Jan 18 2025 11:39:53
Module start 'layout'
Timing: Jan 18 2025 11:39:53
Module start 'content'
Timing: Jan 18 2025 11:39:54
Module end 'content'
Timing: Jan 18 2025 11:39:54
Script end

Main resources:

Total runtime0.8841 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9141152.6250
Module start 'layout' 0.00520.0023 740.539139.4453
Module start 'content' 0.00750.8752 779.9844600.2813
Module end 'content' 0.88260.0014 1,380.265616.1641
Script end 0.8841  1,396.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3482160.0002
Check MTime0.00130.1429160.0001
Mysql Total
Database connection0.00060.063210.0006
Mysqli_queries0.818192.5399680.0120
Looping result0.00080.0902660.0000
Template Total0.854996.720.4274
Template load0.00210.241420.0011
Template processing0.852796.448720.4264
Template load and register function0.00010.016710.0001
states
state_id_array0.00030.036910.0003
state_identifier_array0.00120.138220.0006
Override
Cache load0.00190.2175420.0000
Sytem overhead
Fetch class attribute can translate value0.00080.091830.0003
Fetch class attribute name0.00160.182470.0002
XML
Image XML parsing0.00090.096830.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00090.0974160.0001
String conversion0.00000.000840.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs