summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editpage.pm
AgeCommit message (Collapse)Author
2009-01-26Merge branch 'master' into poJoey Hess
2009-01-25comments: If comment content checks fail, store the comment (in ↵Joey Hess
.ikiwiki/comments_pending) for moderator review.
2009-01-19remove cansave plugin, now replaced by Joey's checkcontent oneintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-19make checkcontent compatible with hooks that need the full contentintrigeri
Always pass the full (modified) content in `content` named parameter. When the user edits an existing wiki page, also pass a `diff` named parameter, which includes only the lines that they added to the page, or modified. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-17Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: IkiWiki/Plugin/editpage.pm IkiWiki/Plugin/skeleton.pm.example doc/plugins/write.mdwn t/syntax.t
2009-01-16checkcontent: New hook, can be used to implement arbitrary content filters, ↵Joey Hess
including spam filters.
2009-01-01editpage: added a cansave hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-19remove cruftJoey Hess
wtf does it do? absolutely nothing
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-12-17checksessionexpiry: reworkJoey Hess
This function as factored out was a bit confusing, I think this makes more sense.
2008-12-11editpage: factor out checksessionexpiry into IkiWiki::CGISimon McVittie
2008-10-23more work on untrusted committersJoey Hess
Wired up check_canedit and check_canremove, still need to deal with check_canattach, and test.
2008-10-02don't special case previewJoey Hess
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.
2008-09-29use newpagefileJoey Hess
2008-09-29support indexpages when creating new pagesJoey Hess
Initial draft, may need to factor new page filename code out into helper function if other plugins need to do the same..
2008-09-29fix handing of case of file first created by preview but then savedJoey Hess
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.
2008-09-27editpage: Be more aggressive (and less buggy) about cleaning up temporary ↵Joey Hess
files rendered during page preview.
2008-09-27Merge commit 'smcv/beautify'Joey Hess
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
2008-09-21editpage: beautify redirection URLs, avoiding exposing the implementation ↵Simon McVittie
detail that index.html exists
2008-09-20add missing page name sanity checkJoey Hess
2008-09-05editpage: New core plugin factoring out page editing to allow disabling it ↵Joey Hess
if desired.