Support
Posting Your Pedigrees to Your Website
Instead of creating an HTML file (web page) for each sheep directly from FlockFiler, it is better to teach your website how to display pedigrees directly from FlockFiler-provided data. By keeping the web page separate from the data, you can customize the web page to match your web site, and you don't need to redo your work each time you update your online sheep data. To update, you would simply provide a fresh copy of your data file.
Using Export
This pedigree page is an example of this technique. I customized it a little by editing some web page code at the start and end of the file to integrate with the appearance of this web site.
You can set this up on your web site. You will need PHP version 4 or later available on your web server.
Download, uncompress, and customize pedigree.php. (You may rename this file when you use it on your website.)
Using FlockFiler Lite or FlockFiler Pro, browse the sheep records you want to appear on the website. You will need to include all the sheep that appear anywhere on your pedigrees.
In FlockFiler Lite use the File-->Export... feature to export the following fields into a "Merge" format file named "flock.mer"
- RecordID
- RegistryIDNumber
- Name
- FatherID
- MotherID
These fields may be exported in any order. If you have customized "pedigree.php" to use different fields or a different filename, use your customized values instead. Note that the The Merge format is simply the ASCII text comma-separated values format with the first line of data being the field names.
In FlockFiler Pro use the File-->Export... feature to export the following fields into a "Merge" format file named "flock.mer"
- Sheep_RecordID
- RegistryID
- Name
- Sire_RecordID
- Dam_RecordID
When using pedigree.php with FlockFiler Pro, you will need to comment out the field names for Lite in the customization section of pedigree.php and uncomment the ones for Pro.
Upload "pedigree.php" and "flock.mer" to your website. Put them in the same directory. The default location for "flock.mer" is in the same directory as "pedigree.php". You can change this by editing "pedigree.php".
Surf to the new "pedigree.php" page on your website.
FlockFiler Lite and FlockFiler Pro are products of
Cosmic Consulting.
info@flockfiler.com (540) 888-0008
