aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editpage.pm
Commit message (Collapse)AuthorAge
* move check_canedit, check_content to IkiWiki library from editpageJoey Hess2009-02-12
| | | | | | | | | | | | It no longer makes sense to keep these functions in editpage, because serveral plugins now exist that use them, and users may want to disable editpage, while leaving those plugins enabled. Most notably, comments uses both functions, and it's entirely appropriate to disable editpage but still want to have comments enabled. Less likely, attachments, rename, and remove all use check_canedit -- but it would be unusual indeed to want to use these w/o editpage.
* comments: If comment content checks fail, store the comment (in ↵Joey Hess2009-01-25
| | | | .ikiwiki/comments_pending) for moderator review.
* checkcontent: New hook, can be used to implement arbitrary content filters, ↵Joey Hess2009-01-16
| | | | including spam filters.
* remove cruftJoey Hess2008-12-19
| | | | wtf does it do? absolutely nothing
* Coding style change: Remove explcit vim folding markers.Joey Hess2008-12-17
|
* checksessionexpiry: reworkJoey Hess2008-12-17
| | | | | This function as factored out was a bit confusing, I think this makes more sense.
* editpage: factor out checksessionexpiry into IkiWiki::CGISimon McVittie2008-12-11
|
* more work on untrusted committersJoey Hess2008-10-23
| | | | | Wired up check_canedit and check_canremove, still need to deal with check_canattach, and test.
* don't special case previewJoey Hess2008-10-02
| | | | | | | | | | Whenever the edit form is submitted, but not saved, the page location select should reduce to the currently selected value. This was only done when previewing before, but is also needed in order to support the case of adding an attachment to a page that is just being created. Before this change, the attachment plugin would get a weird value in $form->field("page"), that did not reflect the actual page location.
* use newpagefileJoey Hess2008-09-29
|
* support indexpages when creating new pagesJoey Hess2008-09-29
| | | | | Initial draft, may need to factor new page filename code out into helper function if other plugins need to do the same..
* fix handing of case of file first created by preview but then savedJoey Hess2008-09-29
| | | | | | To handle this, avoid populating %renderedfiles in preview, and in expiry, check if the file is in %renderedfiles, if it is do not delete it since it was saved.
* editpage: Be more aggressive (and less buggy) about cleaning up temporary ↵Joey Hess2008-09-27
| | | | files rendered during page preview.
* Merge commit 'smcv/beautify'Joey Hess2008-09-27
|\ | | | | | | | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/recentchanges.pm Note that smcv's approach of using urlto also gets the url right when redirecting to a non-html file, which is a better approach than my recent fix to recentchanges
| * editpage: beautify redirection URLs, avoiding exposing the implementation ↵Simon McVittie2008-09-21
| | | | | | | | detail that index.html exists
* | add missing page name sanity checkJoey Hess2008-09-20
|/
* editpage: New core plugin factoring out page editing to allow disabling it ↵Joey Hess2008-09-05
if desired.