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

Information collection

The information collection feature makes it possible to gather user input when a node referencing an information collector object is viewed. It is typically useful when it comes to the creation of feedback forms, polls, etc.

An object can collect information if at least one of the class attributes is marked as an information collector. When the object is viewed, each collector attribute will be displayed using the chosen datatype's data collector template. Instead of just outputting the attributes' contents, the collector templates provide interfaces for data input. The generated input interface depends on the datatype that represents the attribute. The following table reveals the datatypes that are capable of collecting information.


Input interface

Input validation





Single line of text.



Radio buttons or a dropdown menu.


Text block

Multiple lines of unformatted text.


Text line

Single line of unformatted text.


The input interfaces must be encapsulated by an HTML form that posts the data using a submit button named "ActionCollectInformation" to "/content/action" (the "action" view of the "content" module). The submitted data will be stored in a dedicated part of the database, separated from but related to the object itself. In addition, whenever the object collects any data, the information can be sent to a specified E-mail address. The "Collected information" section within the "Setup" part of the administration interface can be used to view and delete information that was collected through content objects.

Balazs Halasy (10/02/2005 3:57 pm)

Balazs Halasy (06/05/2005 10:52 am)


  • Two more hidden inputs also required.

    After much painful trail and error I have determined that the following hidden input fields are required within the form:
    <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
    <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />

    [Why oh why isn't this documented!? It simply does not work without it :-[
    • Re: Two more hidden inputs also required.

      It's really well documented in the "eZ publish basics" book. There's another recommended hidden input form, too. Here's the code snippet from page 148-9:

      Chapter 4. Common Solutions: Creating a feedback form

      <form method="post" target={'content/action'|ezurl}>
      <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
      <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
      <input type="hidden" name="ViewMode" value="ful" />