SWFAddress

From MegaZine3
Jump to navigation Jump to search
{{#if: | }} {{#if: | }}{{#if: * swfaddress.swf | }}{{#if: * Anchors | }}
Plugin: SWFAddress
[[File:{{{image}}}]]
Name SWFAddress
Since version

{{{version}}}

Files
  • swfaddress.swf
Related plugins

This plugin adds support for SWFAddress. This means it becomes possible to "deep link" the book, navigating to pages directly by using the browser's address bar / URLs.

Note: don't expect this to work locally. Try it on a server!

Plugin interactions

When using the anchors plugin, it is also possible to deep link to anchors.

Settings

== swfaddressupdate =={{#if: Boolean |

  • Type: Boolean}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: true |
  • Default: true}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

Determines whether SWFAddress uptates the browser's address bar on page changes. When enabled, users will be able to copy the current location from the address bar, linking to the current page. This will also result in each page change adding an entry to the browser history (thus allowing to go back in the book using the backward navigation of the browser), which might be annoying to some people (as it can quickly 'spam' the history).{{#if: |

  • See also: {{{see}}}}}

== swfaddressanchors =={{#if: Boolean |

  • Type: Boolean}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: true |
  • Default: true}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

When enabled, the address bar is set to the anchor of a page instead of the page number (if possible).{{#if: |

  • See also: {{{see}}}}}

Attributes

This plugin handles no element attributes.

Examples

To link to page 12, add /#/12 to the URL. For example, if your book lies at http://www.example.com/, change the URL to http://www.example.com/#/12. This jumps the the 13th page side (i.e. the page with the index 13, counting starts at 0, direction depends on reading order). In a left to right book this is the 7th "physical" page. Note that this mechanism ignores the book@pageoffset property; it always uses the pages actual index.


MegaZine3 Plugin-related articles
Plugins Anchors · Background Sounds · Batchpages · Bookmarks · Console · ElementIDs · Gallery · Google Analytics · Help · JavaScript · Keyboard Navigation · Links · NavigationBar · Options · Overlays · Password · PDFLinks · Print · PrintPDF · SWFAddress· Search · Sidebar · Slideshow · Titles
Plugin Articles Writing a plugin · Writing a plugin II · Plugin development

{{#if: | |}}