Forums / Setup & design / how to install a new template?

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

eZ debug

Timing: Jan 18 2025 05:19:47
Script start
Timing: Jan 18 2025 05:19:47
Module start 'content'
Timing: Jan 18 2025 05:19:47
Module end 'content'
Timing: Jan 18 2025 05:19:48
Script end

Main resources:

Total runtime1.0024 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 591.4219180.8359
Module start 'content' 0.00630.8565 772.2578605.3594
Module end 'content' 0.86280.1396 1,377.6172337.0938
Script end 1.0023  1,714.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4221210.0002
Check MTime0.00150.1509210.0001
Mysql Total
Database connection0.00050.049910.0005
Mysqli_queries0.923292.09852050.0045
Looping result0.00220.22282030.0000
Template Total0.972697.020.4863
Template load0.00240.241120.0012
Template processing0.970296.785420.4851
Template load and register function0.00020.019410.0002
states
state_id_array0.00160.160910.0016
state_identifier_array0.00110.111020.0006
Override
Cache load0.00210.2128420.0001
Sytem overhead
Fetch class attribute can translate value0.00170.166940.0004
Fetch class attribute name0.00100.097170.0001
XML
Image XML parsing0.00360.354440.0009
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00480.4835270.0002
String conversion0.00000.000930.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs