Singlepages

From MegaZine3
Jump to navigation Jump to search
{{#if: | }} {{#if: | }}{{#if: singlepages.swf
singlepages.asul
| }}{{#if: | }}
Plugin: Singlepages
[[File:]]
Name Singlepages
Since version

{{{version}}}

Files

singlepages.swf
singlepages.asul

Related plugins

{{{related}}}

This plugin allows to present a book as singlepages, which offers a better user experience on mobile devices in portrait mode. If this plugin is added and enabled (suggested setting: singlePageEnabled = "auto'), the left and right pagesides are expanded to best fill the viewport (visible area of the screen). A page change either slides the other page side into the view area, or flips the page if necessary. In 'auto' mode the single page mode is used in portrait mode and the standard mode in landscape mode. BTW: mz3Tool also makes use of this plugin so the correct page side can be activated and also focused (if the switch "single page focus" (top right in manage or add elements, supported since version 2.4.0.4) is checked.

Settings

== singlePageCentered =={{#if: String |

  • Type: String}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: auto (yes |
  • Default: auto (yes}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

If enabled centers the active/selected page always in the middle of the viewport (window, screen).{{#if: |

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

== singlePageEnabled =={{#if: String |

  • Type: String}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: auto (yes |
  • Default: auto (yes}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

If enabled the singlePagePlugin is supported and can become active if needed (if set to auto and a portrait aspect ratio is detected) or be activated via a button in the navigationbar.{{#if: |

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

== supportSinglePageButton =={{#if: String |

  • Type: String}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: auto (yes |
  • Default: auto (yes}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

If enabled the single page button will be added to the navigationbar. This allows to switch mode without turning the mobile device. Can be helpful for relatively square pages. Or in case this is needed to test what setting might be best.{{#if: |

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


Tags

Example

Example 1: general use

<book plugins="singlepages" singlePageEnabled="auto">
    <chapter>
        <!-- Actual book content -->
    </chapter>
</book>


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: | |}}