devel:event:io_wikipage_write
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:event:io_wikipage_write [2008-10-26 12:23] – andi | devel:event:io_wikipage_write [2018-12-08 15:46] (current) – doc updated according to issue #2615 torpedo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== IO_WIKIPAGE_WRITE ====== | ||
+ | ---- dataentry event ---- | ||
+ | Description: | ||
+ | DefaultAction: | ||
+ | Preventable: | ||
+ | Added_dt: | ||
+ | ---- | ||
+ | |||
+ | The event is signalled by [[xref> | ||
+ | |||
+ | The page content may be modified by action plugins between DokuWiki and the disk. | ||
+ | |||
+ | Page creation may be detected by checking if the file already exists and the revision is false. | ||
+ | |||
+ | Page deletion may be detected by checking for empty page content. | ||
+ | ===== Passed Data ===== | ||
+ | The passed [[xref> | ||
+ | |||
+ | The '' | ||
+ | * $data[0] -- The raw arguments for [[xref> | ||
+ | * $data[0][0] -- the file path. | ||
+ | * $data[0][1] -- the content to be saved, and may be modified. | ||
+ | * $data[0][2] -- whether given content will be appended, default false. | ||
+ | * $data[1] -- ns: The colon separated namespace path minus the trailing page name. (false if root ns) | ||
+ | * $data[2] -- | ||
+ | * $data[3] -- rev: The page revision, false for current wiki pages. | ||
+ | |||
+ | In the BEFORE event handler the '' | ||
+ | |||
+ | In the AFTER event handler the '' | ||
+ | |||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * [[codesearch> | ||
+ | * [[devel: | ||
+ | * [[devel: | ||
+ | * [[IO_WIKIPAGE_READ]] |
devel/event/io_wikipage_write.txt · Last modified: 2018-12-08 15:46 by torpedo