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.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | No | No | No | No | No | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.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