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.