Skip to content
Evan Walsh edited this page May 3, 2015 · 2 revisions

Protagonist allows you to use it how you like. However, there are a few patterns of use that might be helpful for a broad set of creators. Please add any you come up with here.

Header with back/forward/save/load links

  1. Create a passage named HEADER

  2. Paste this into the passage body

    <% if (story.previousPassage) { %><%= backLink('[back]') %><% } %> <% if (story.nextPassage) { %><%= forwardLink('[forward]') %><% } %> <%= saveLink('[save]') %> <%= restoreLink('[restore]') %>
    
Clone this wiki locally