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