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.

layout

Summary

Provides a view that makes it possible to use alternative pagelayouts.

Description

This module has only one view, "set". The view can be used to force the system to make use of a different pagelayout template than the default one (pagelayout.tpl). It simply takes care of setting the variable that eZ publish uses when picking out the pagelayout template file.

When finished, the module that is specified (after the layout part in the URL) will be executed. In other words, the layout module offers a prefix/prerun-mechanism that can be used to specify which pagelayout eZ publish should use when rendering a specific page. For example, it can be used to set the printer-friendly layout:

http://www.example.com/layout/set/print/content/view/full/45

Note that the URL actually contains two module-view pairs. The first module/view combination will make sure that the print pagelayout is used, the second module/view combination instructs eZ publish to display a full view of node number 45. The result will be the following: eZ publish will render the full view of node number 45, but instead of using "pagelayout.tpl" as the main template, it will use the pagelayout that is associated with "print" in the configuration override for "layout.ini".

Fetch functions

NameSummary
sitedesign_list Fetches the names of the currently used designs.

Views

NameSummary
set Forces the system to use an alternate pagelayout.

Balazs Halasy (23/02/2005 9:51 am)

Balazs Halasy (29/04/2005 7:59 am)


Comments

There are no comments.