Share » Learn » eZ Publish » Building a custom template for a news...

Building a custom template for a news portal

Tuesday 16 May 2006 1:44:00 am

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Before beginning development, we'll disable the eZ Publish template cache. eZ Publish uses template caching to speed up the performance of the system in a production environment. During development, you should flush the template cache so you can instantly see the changes you applied to the templates. This can be done via the Administration Interface:

  1. Click the Setup tab.
  2. Click the Clear all caches button.

In addition, you should disable template compilation and caching during development. The following types of cache must be disabled:

  • template compilation
  • view cache
  • override cache

The settings to disable these caches (shown below) are stored in the site.ini configuration file. The performance of eZ Publish will be noticeably slower when these caches are disabled. The caches need to be re-enabled before the site goes into production use.

[TemplateSettings]

TemplateCompile=disabled

 
[ContentSettings]

ViewCaching=disabled


[OverrideSettings]

Cache=disabled

Custom Frontpage Template
36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)