Skip to content

Person Web Part Documentation

Peter Graham edited this page May 9, 2013 · 5 revisions

This is the documentation for the Bandido+ person sharing service web part.

URLs

Prerequisites

In order for the web part button click JSONP call to work, the request must contain a valid ATT cookie that is associated with a user who can access the shared content. Thus, to completely test the web part, we recommend that you push code to dev or stage and login as a valid Ancestry user beforehand.

Dependencies

Required:

  • jQuery 1.7+

Optional:

Example HTML

<div id="ShareRegion" data-tree-id="116448" data-person-id="18003641377" data-referrer-client="website-stage" data-referrer-page="example-share-webpart" data-person-name="Peter Akira Graham" data-person-first-name="Peter">
</div>

HTML data attributes

The following specifies data attributes that you should add for the parent <div> of the web part.

  • Required
    • data-tree-id the tree ID of the person that is being shared
    • data-person-id the person ID of the person that is being shared
    • data-referrer-client for the website, this should be "website", "website-stage", or "website-dev". For iOS this should be "ios")
    • data-referrer-page the name of the page that this web part is being implemented on (e.g. "interactive-image-viewer", "all-hints", etc.)
    • data-person-name the name of the person being shared
    • data-person-first-name the first name of the person being shared
  • Optional
    • data-locale - see below for details

locale

String or Windows codes (as strings or integers)

"en-US" : 1033
"en-CA" : 4105
"fr-CA" : 3084
"en-UK" : 2057
"sv-SE" : 1053
"it-IT" : 1040
"de-DE" : 1031
"fr-FR" : 1036

Button styles

There is only a single button style which currently cannot be customized unless you override our CSS. We may add more button styles in the future.

Web part region IDs

Region CSS ID can be specified using the region= GET param to allow for multiple bandido web parts on the same page. The default CSS ID is ShareRegion.

Clone this wiki locally