|
Cookbook /
Recent Uploads LogSummary: List all uploaded files in RecentUploads pages
Version: 2009-09-03
Maintainer: Petko
Categories: Uploads, Administration
Discussion: RecentUploadsLog-Talk
Questions answered by this recipeHow do I track every uploaded file in the RecentChanges and AllRecentChanges pages and easily review it? DescriptionEvery uploaded file is logged in the Group.RecentUploads pages with a link from (All)RecentChanges for easy review. The format of what is printed in the RecentChanges and RecentUploads pages, is defined with the Initially, the variable Configuration examplesCurrently, the PmWiki.org site logs every upload to the page Site.AllRecentChanges with the following command line: $RecentUploadsFmt['$SiteGroup.AllRecentChanges'] =
'* [[{$Group}/]] / [[(Path:/pmwiki/uploads/{$Group}/)$upname]] '
.'. . . $CurrentTime Uploaded by $AuthorLink to [[{$Group}/{$Name}]] ($upsize $[bytes])';
We have a link One could use The format used by the standalone recipe in the past, before inclusion to the core, can still be used. For example: $RecentUploadsFmt['$Group.RecentUploads'] =
'* [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]]'
.' . . . $CurrentTime $[by] $AuthorLink ($upsize bytes)';
$RecentUploadsFmt['$Group.RecentChanges'] =
'* [[{$Group}/RecentUploads]] . . . $CurrentTime $AuthorLink :'
.' [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]] ($upsize bytes)';
$RecentUploadsFmt['$SiteGroup.AllRecentChanges'] =
'* [[{$Group}.RecentUploads]] . . . $CurrentTime $AuthorLink :'
.' [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]] ($upsize bytes)';
This logs every upload to the page Group.RecentUploads, and adds a link to that page both to Group.RecentChanges and Site.AllRecentChanges. Only the latest upload for a Group is displayed in (All)RecentChanges, however, clicking on the link Group.RecentUploads will show you all uploaded files for the Group. Note that in the current PmWiki core, a page named RecentUploads will be excluded from page lists (with list=normal). Notes
Release Notes
See Also
ContributorsCommentsSee discussion at RecentUploadsLog-Talk User notes +4: 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. |