Documentation Center

Creating custom parameters for headers and footers

Define the name and value of one or more custom parameters for an entry in the configitem element that has its name attribute set to pdf.param_list. You can create common parameters that are shared across all books, or book-specific ones.

Procedure

  1. Navigate to your collection directory.
  2. Open wietmsd_prg.xml for editing.
  3. Find the configitem element that has its name attribute set to pdf.param_list. The content of this element is a semicolon-separated list.
  4. Add the name of your custom parameter(s) to this list. For example, if the the element currently contains the string ietm_version, adding pub_number and pub_date results in an element that looks as follows:
    <configitem name="pdf.param_list">ietm_version;pub_number;pub_date</configitem>
  5. Save and close the wietmsd_prg.xml file.
  6. Open wietmsd.xml for editing.
  7. Do one of the following:
    • To add your parameter as a common, cross-publication parameter, find the section called "LiveContent PDF Headers and Footers."
    • To add your parameter as a publication-specific parameter, find the section called "Configuring PDF Headers and Footers."
  8. Declare the parameter name and its value in this section.
    • For example, to add pub_number, add the following.
      <configitem name="pubNumber.value">3.0.1</configitem>
    • For example, to add book_description, add the following.
      <configitem name="bookDescription">book_description</configitem>
    • For example, to add cdVersion, add the following
      <configitem name="cdVersion.value">CD 6.5</configitem>
  9. If you want to add your parameter as a publication-specific parameter, declare the parameter value in the publication configuration.
    For example, to add a book description to the BIKE publication, add the following as a child element of the book element with its name attribute set to the value BIKE.
    <configitem name="bookDescription">S1000D BIKE demo</configitem>
  10. Save and close the wietmsd.xml file.
  11. Modify your custom skin to process the parameters you added.