Chesapeake Bay Retriever
Pedigree Database ...In memory of Donnett's Pepper Pete
How-To Embed ChessieDB Pages
Posted on November 05, 2009 at 11:19 AM in categories How-To, Website

The ChessieDB Dog Info, Pedigree, Reverse Pedigree, Breeding, and part of the new contact Profile page, can all be embed into another web page, on a completely different website. The idea is to allow web site owners (kennels, breeders, and dog owners) to use our database information, and reduce the time they spend maintaining the same information on their website. The pages we provide for embedding have been simplified, stripped of their ChessieDB branding (menus, etc.), and provide links to other pages also designed for an embedded window frame.

I've written a How-To Document that shows a few different ways an embedded page might be displayed, and here's a complete list of pages that may be embedded:

http://chessiedb.org/lst/{id#}
The list of dogs associated with a contact ID number, both as owner and breeder.
http://chessiedb.org/dog/{dogname}
The Dog Info page, minus the contact information.
http://chessiedb.org/ped/{dogname}
A four generation Pedigree page. There are a few parameters that you can use to modify the Pedigree output:
  • gens=# to specify an alternate number of generations.
  • simple=yes to keep only the essentials (no thumbnails, reg. numbers, etc.).
  • links=no to output a Pedigree without hypertext links.
For example, to create a simple, five generation text Pedigree, you would use:

http://chessiedb.org/ped/{dogname}?gens=5&simple=yes&links=no

http://chessiedb.org/rev/{dogname}
A four generation Reverse Pedigree page.
http://chessiedb.org/bre/{dogname}
The complete Breeding list for a dog.

I should mention that the {dogname} part of the URL must be properly percent-encoded. Several pages and forms already exist that will encode a string or URL for you.

js.

Comments
Posted by on November 06, 2009 at 12:25 PM

The contact ID numbers are still a new feature -- I've yet to develop the update and search functions for them, but hopefully this won't be too far off. Meanwhile, you might want to go through your dogs records and make sure their information is accurate (use the [Update] link on the Dog Info or Pedigree pages, for example). Since owners will remain associated with dogs that have passed away, it would be important to update the Date of Death field as required. This affects how a dog is listed on the contact ID Profile page.

js.

Categories
September 2011
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 ( 12 ) 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30