|
Used for creating Dr. PI's bluebook Mammalia
A later version of the example ist found on the Web http://www.bloobook.net
In the "work" folder, Content file is: species.fp5, the field for species name is "biolog". Export file is: "MultiExport.fp5" from the Troi-File-Plug-in2.8. Html-output pages will be in the "pag" folder.
Creating a file
- Collect all information in a FileMakerPro datababase e.g. Arten.fp5
- Create a Sample html-File for an entry
- Put the constant parts of the file (Head, Layoutstuff, Footer) into global FileMaker Pro Fields.
- From the Database entries compile the html-file in the FileMaker database for each entry input one html-field named "output".
Linking to Multiexport.file
NB: It is not absolutely necessary to have separate file for content and for exporting, but crashes can occur during export and can irreverisbly damage the file. This section describes how to connect.
- Copy the MultiExport.fp5 file into the Work folder (keep a virgin copy of MultiExport.fp5)
- Open MultiExport.fp5
- Create a new Relationship: Arten.fp5 : biolog :: MultiExport.fp5 : textfield1
- Import records : Arten.fp5 : biolog :: MultiExport.fp5 : textfield1 (one field is enough, keep in original order).
- Create layout "Output" with textfield 1 and a large field "Arten.fp5 : output"
Single Record Export
- Select a single record
- select all
- omit current with Apple-T
- Menu / Records / Find omitted
- Export one record into the work folder ( The first export is preferably done manually to set all options as desired)
- File / Export Records / Save as TrExport.tab /
- Speciefy Field Order for Export (Relationship, Field): species : output
- The default field order for export in the "export data" script is:

- replace this field order: with 1. species::output, numberfiel as follows:
- open Multiexport.fp5/file Menu/ Scripts / ScriptMaker/
- select the script "Export Data"
- click the line export Order,
- deselect "Restore Export Order", press ok
- replace export order with the information currently in use
- Locate the Export File (step 2):
DrPI OSX:Users:pi:Sites:piweb:bluebook:mammalia:work:TrExport.tab
- Before continuing check the content of the exported file:
- copy TrExport.tab
- rename copy to TrExport.html
- open in Browser.
Multiexport
- Adjustment 1for Mulitexport:
- to avoid restoration of the export order
- Adjustment 2 for Multiexport:
- to replace the filename extension ".TAB" wit ".html"
- open the script"Do Multi export" (as above)
- at the end of line 8 ( "set Field ...") replace ".TAB" with ".html"
Adjustments in the loop of the Do Multi export script

- Create a destination folder "pag"(step3).
- If the folder already exists, create a folder "DemoFolder" within it.
- destination folder: DrPI OSX:Users:pi:Sites:piweb:bluebook:mammalia:pag:DemoFolder:
- you can then delete the extra folder from the path:
DrPI OSX:Users:pi:Sites:piweb:bluebook:mammalia:pag:
- Do multi Export
each record from the 2species.fp5" file is exported as a File into the folder "pag"
|