|
The Book Guide documents use of hidden Page Text Variables to set metadata values on a book’s trail page. It is useful to make these visible, without having to edit the page. This recipe provides (:bookmetadata TrailPage :) markup, which lists all metadata options and their values. An enhanced version of this recipe, which supports form-based metadata editing, is included in the Publish PDF library version 2.2.34. Download bookmetadata.php Δ, place it in the cookbook/ directory and add the following line to local/config.php after loading the Cookbook:PublishPDF library: include_once("$FarmD/cookbook/bookmetadata.php");
To use this markup, write:
Note that the (:description:) directive sets the book’s publisher field. Contributor: John Rankin, Friday, 17 December 2010 |