You can embed a single Story or a set of related Stories anywhere on your web page. To simplify the display of Stories, SlapFive uses Boards as the container for the one or more Stories, and the Board is then embedded as a widget at your desired location. Here’s how to do it.
1. Make a SlapFive Board that contains the Story(ies) that you want to show on your website or landing page. This board should use a template that is designed for being inserted as a widget into a web page.
2. Within your web content management (WCM), blog, or landing page editor, go to the location you want to insert the SlapFive Board, and copy and paste the following code snippet:
<div id=”board_1″></div>
<script type=”text/javascript” src=”//pym.nprapps.org/pym.v1.min.js”></script> <script> var pymParent = new pym.Parent(‘board_1’, ‘INSERT_URL_HERE’, {allowfullscreen: true}); </script>
3. In the pasted code snippet, where you see the text INSERT_URL_HERE, substitute the URL for the Board you want to embed within the single quotation marks. You can find the URL by previewing the Board and copying the address bar contents, or by clicking the Copy URL button next to the Board on the Boards tab in SlapFive.
4. If you want to embed more than one board on the same page, for the second board, replace “board_1” with “board_2” in both places it appears. Increase the number for each additional board you embed.
NOTE: Make sure that when the code was pasted, you ended up with straight quotation marks, not curly quotation marks, or your browser may not like you.