Website Downloads Documentation Knowledgebase Wiki Issue tracker Commercial support

Live and staging view

By default, the Daisy Wiki shows the live version of each document, if you want to see other versions you need to explicitly go look at them.

The live/staging switch allows to make that the last version of each document is displayed by default. Or from another point of view, it shows how the Wiki would look like if the last versions of all documents were live.

The live/staging applies to:

  • the documents themselves
  • images embedded in documents
  • documents included inside documents
  • queries embedded in documents are executed with the 'search_last_version' option
  • navigation trees:
    • the version of the navigation tree document itself is the last one
    • imported navigation tree documents also use the last one
    • if the document name is used as label of a node, the document name from the last version is used
    • queries in navigation trees are executed with the 'search_last_version' option
    • in 'last' mode, only document-nodes for which one has read access on non-live versions are visible

Since the fulltext index is only maintained for the live content, the fulltext search feature doesn't change when switching to staging mode.

The live/staging mode is stored in the user's session, in other words it applies to the whole Daisy Wiki (all sites), and is not remembered after logging out or closing the browser.

More technically, the live/staging switch is implemented by setting the versionMode attribute in the publisher request.

In extensions, you can find out the current mode using the daisy.getVersionMode() method of the Daisy flowscript API.

Comments (0)
Advertisement

Daisy hosting, installation, support. Workshops and turnkey Daisy CMS projects. Get Daisy from its creators.

outerthought.org

Downloads provided by

SourceForge.net Logo

Open source stats