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. Refer to "Configuring the view cache" for more information.
Note: As of eZ Publish 4.3 the setting in the admin siteaccess is disabled by default in the Administration Interface. In order to use the Preview tab, you first have to enable it in the right menu. This does not apply to eZ Publish 4.4+.
Examples
CachedViewPreferences[full]=mysetting;myothersetting=1
This example shows a site where at least one of the templates of the "full" view mode uses the mysetting and myothersetting.
CachedViewPreferences[full]=admin_navigation_content=1;admin_children_viewmode=list;admin_list_limit=1
This example shows the default setting in the admin siteaccess in eZ Publish 4.3.
CachedViewPreferences[full]=admin_navigation_states=0;admin_navigation_content=0;admin_navigation_details=0;admin_navigation_languages=0;admin_navigation_locations=0;admin_navigation_relations=0;admin_navigation_roles=0;admin_navigation_policies=0;admin_navigation_content=0;admin_navigation_translations=0;admin_children_viewmode=list;admin_list_limit=1;admin_edit_show_locations=0;admin_leftmenu_width=10;admin_url_list_limit=10;admin_url_view_limit=10;admin_section_list_limit=1;admin_orderlist_sortfield=user_name;admin_orderlist_sortorder=desc;admin_search_stats_limit=1;admin_treemenu=1;admin_bookmarkmenu=1;admin_left_menu_width=13
If you want to install eZ Publish 4.3 with the old admin design, you have to use the above viewcache setting in the admin siteaccess.
Frederik Holljen (22/04/2005 2:47 pm)
Geir Arne Waaler (27/08/2010 2:37 pm)
Comments
There are no comments.