{"id":9862,"date":"2009-10-26T14:13:41","date_gmt":"2009-10-26T18:13:41","guid":{"rendered":"https:\/\/www.bu.edu\/tech\/?page_id=9862"},"modified":"2013-03-08T16:06:37","modified_gmt":"2013-03-08T21:06:37","slug":"web-page-templates","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/people\/forms\/form-to-webpage\/web-page-templates\/","title":{"rendered":"Web Page Templates"},"content":{"rendered":"<p>In order to format emails or web pages created by PonyExpress,                   you will create separate template files. There are two types of                   templates used with PonyExpress: email templates and file templates.<\/p>\n<p>All the templates are plain text files, so if you create them in                   more advanced word processors like MS Word, make sure to save them                   as plain text. Also, since Windows applications may append file extensions                   invisibly, <strong>make sure you rename the file<\/strong> once it is on the server                   so that it does not have any three-letter extension (e.g., .txt).<\/p>\n<h2>File templates<\/h2>\n<p>The output.template file, used to format web pages created by PonyExpress,                   is just a bit more complex, although it is also quite flexible.                   This template consists of three sections: header, entry, and footer.                   The sections are separated by double-pound symbols (##) on lines                   by themselves.<\/p>\n<p>The header and footer will become the top and bottom portions of                   the output file (output.html by default), while the entry section                   will be repeated once for every new form submission. Each of these                   sections can be as simple or as complex as you choose. Again you                   will use square brackets [ ] to include data from your form.<\/p>\n<p>The following template creates a simple web guestbook:<\/p>\n<p>&lt;html&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;center&gt;&lt;h2&gt;My Guestbook&lt;\/h2&gt;&lt;\/center&gt;<br \/>\n##<br \/>\n&lt;p&gt;<br \/>\n[timestamp]&lt;br&gt;<br \/>\n&lt;a href=&#8221;[email_address]&#8221;&gt;[fullname]&lt;\/a&gt;<br \/>\n&lt;blockquote&gt;<br \/>\n[comments]<br \/>\n&lt;\/blockquote&gt;<br \/>\n&lt;\/p&gt;<br \/>\n##<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to format emails or web pages created by PonyExpress, you will create separate template files. There are two types of templates used with PonyExpress: email templates and file templates. All the templates are plain text files, so if you create them in more advanced word processors like MS Word, make sure to save&#8230;<\/p>\n","protected":false},"author":1685,"featured_media":0,"parent":9816,"menu_order":2,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9862"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1685"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=9862"}],"version-history":[{"count":8,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9862\/revisions"}],"predecessor-version":[{"id":63123,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9862\/revisions\/63123"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9816"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=9862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}