FoxDelete

Summary: add delete links for deleting lines or sections with Fox
Version: 2019-11-11
Prerequisites: Pmwiki 2.2.56 and Fox (compatible with PHP 5.5)
Status: stable
Maintainer: HansB
Categories: Forms Fox PHP55 PHP72
Download: foxdelete.phpΔ
Discussion: FoxDelete-Talk

Questions answered by this recipe

How can I add delete links or buttons with which to delete lines or sections of a page? How can I add links or buttons with which to delete entire pages?

Description

An add-on for the Fox form processor which enables line, section and page delete links and buttons.

This script adds template markup {[foxdelline]}, {[foxdelrange]}, {[foxdelline button]} and {[foxdelrange button]} which can be used in a Fox template to create a delete link or button to delete a line or posted content section.

It also adds markup {[foxdelpage <targetname> ]} and {[foxdelpage button <targetname> ]} for page deletion of page <targetname>. Extra parameters for link or button label and for tooltip text can be used. Redirection can be specified. This Fox page deletion can be generally disabled in config.

The recipe script can be used to generate links and buttons for deletion of lines, page sections like comment posts, or entire pages, and the deletion works in conjunction with Fox.

Full documentation and download can be found here: http://softflow.uk/softflow/FoxDocumentation/DeleteLinks

Release Notes

  • 2019-11-11: Re-added page delete capability, which got lost in previous version.
  • 2017-12-04: fixed bug introduced with previous update.
  • 2017-06-16: replaced Markup_e() calls with Markup() calls, for PHP 7.2 compatibility.
  • 2015-01-08: Added page delete capabilities with new foxdelpage markup.
  • 2008-07-12: Fixed bug preventing cancel in delete confirm dialogue.
  • 2008-04-19: Modified markup definition and added option tooltip='STRING'.
  • 2008-03-16: Changed handling of $FoxAuth so customisations applied after foxdelete.php is included will be honoured. Moved delete warning messages from fox.php to foxdelete.php
  • 2008-02-07a: Modified which edit functions are called.
  • 2008-02-07: Fixed bug which prevented ChangeSummary to appear in page history.
  • 2008-02-05: Added handling of $ChangeSummary, so any value from an input field named 'csum' will be written into the page attributes and be available for the page history.
  • 2008-01-09: Initial release. Previously part of fox.php. Still part in the older Fox version fox-1.phpΔ

See Also

Contributors

Comments

See discussion at FoxDelete-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.