Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

CachedViewPreferences

Summary

Sets the user preferences each view mode depends on.

Usage

 

CachedViewPreferences[ viewmode1]= setting1[= defaultvalue1]; setting2[= defaultvalue2]...
CachedViewPreferences[ viewmode2]= setting1[= defaultvalue1] ; setting2[= defaultvalue2]...
...

Description

Sometimes you have conditions based on user preferences in the templates of cached view modes. eZ publish needs to know the preferences you use per view mode in order to make sure that the caches are correct. You should use this setting if at least one of your templates (including override templates) use a condition based on a user preference.
A typical symptom of a missing CachedViewPreferences setting is if you change a preference setting and the interface is not updated until you clear the cache.

Examples

CachedViewPreferences[full]=mysetting;myothersetting=1
CachedViewPreferences[pdf]=myothersetting=1

This example shows a site where at least one of the templates of the "full" view mode uses the mysetting and myothersetting. One of the templates in the "pdf" view also uses the myothersetting setting.

Frederik Holljen (22/04/2005 2:47 pm)

Svitlana Shatokhina (02/10/2006 1:03 pm)

Frederik Holljen, Svitlana Shatokhina


Comments

There are no comments.