On Tue, 13 Nov 2001 09:26:48 +0100
"Tara Star" <te...@cl...> wrote:
> Is there any way I could choose the view the minor edits too in
> RecentChanges - for example when I'm logged in as admin?
>
> Is it something that could easily be added to the user prefs, or not?
I don't think you can do this based on username or user preference
right now. To add a user preference for this is a good idea, I think.
It would be straightforward, but not trivial to do --- I'll think I'll
postpone it until the user login code is closer to it's final form.
Currently the RecentChanges plugin accepts four arguments:
days: (floating point value) number of days to show.
show_minor: (boolean, default = false) Include minor edits in listing?
show_major: (boolean, default = true) Include major edits in listing?
show_all: (boolean, default = false) Include all edits for each page,
not just the most recent.
So with the default args: show_minor=false, show_major=true,
show_all=false,
you get the most recent non-minor change for each page.
<?plugin RecentChanges show_minor=true?> Will give you the most recent
change,
whether it's minor or non-minor.
<?plugin RecentChanges show_minor=true show_all=true?> will give you all
the changes for each page. (This is what's used on
http://phpwiki.sourceforge.net/wiki/RecentEdits.)
You can also pass arguments to plugins via HTTP query args, so
http://phpwiki.sourceforge.net/wiki/RecentChanges?show_minor=true will
give you the most recent change to each page.
Combining this with MagicPhpWikiURLs, you could put a button on
RecentChanges to get to this view. Something like [Include Minor
Edits|phpwiki:?show_minor=true] should work. This is how the "Show
changes for n days" buttons work in the stock RecentChanges in
pgsrc/RecentChanges.
|