1.2.2releasedPublish Button

A button that toggles an entry's published-state and allows authors to preview unpublished entries on the live site.

Clone URLhttps://github.com/pixelninja/publishbutton.git

Add as a submodulegit submodule add https://github.com/pixelninja/publishbutton.git extensions/publishbutton --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNoNoNoNoNoNo1.2.21.2.21.2.21.2.21.2.21.2.21.2.21.2.21.2.21.2.21.2.2

Readme

Publish Button

A button that toggles an entry's published-state and allows authors to preview unpublished entries on the live site.

Installation

  • Upload the /publishbutton folder to your Symphony /extensions folder.
  • Enable it by selecting 'Publish Button', choose 'Enable' from the with-selected menu, then click 'Apply'.

Usage

When this field is added to a section, a new button will appear on its entries pages. This Publish Button will allow an author to toggle the published-state of an entry between "Published" and "Unpublished". Behind the scenes the button acts like a normal checkbox and translates these states to simple yes and no values which then can be used to filter your entries in data-sources.

When the user is logged in to Symphony, the value used for filtering and XML output will always be yes. This allows the author to create/edit an entry (like an article) and preview it on the live site without the public seeing it.

Compatibility

Publish button plays nicely together with the Ajax Checkbox extension (Version 1.5.0 and up) which adds the possibility to easily toggle the published-state directly in the section's index/table view.

Version history

Requires Symphony 2.7.x

  • Bug fix where the checked state was being set on load and not being updated on click, resulting in the same state being sent via AJAX regardless of checked state.

Requires Symphony 2.7.x

  • Added Links to the meta.xml
  • Unified version numbers in meta.xml
  • Extended readme

Requires Symphony 2.7.x

  • Fix bug where authors and managers wouldn't see the button

Requires Symphony 2.7.x

  • Make sure JS is executed after window load

Requires Symphony 2.7.x