Re: How to list locked pages

"Reini Urban" <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
2008/2/5, Marc-Etienne Vargenau <[email protected]>:
> I would like to create a wiki that will give me the list of locked pages.
> I have put in the "LockedPages" page:
>
> <?plugin AllPages info=locked,author ?>
>
> That gives me the list of all pages, with lock status.
> Then you can sort by lock status.
> But is there a way to call the plugin to only display the locked pages?

info just lists the columns.
locked=1 would filter by columns with locked = 1.

LockedPages:
<?plugin AllPages info=locked,author locked=1 ?>

If locked would be detected as valid filter. But apparently it is not
supported yet.
I've added a feature request:
http://sourceforge.net/tracker/index.php?func=detail&aid=1886970&group_id=6121&atid=356121

I'll think of a way to filter by any valid column automatically, with
custom columns also.
Currently pagelist filters are not handled within PageList itself, they are
handled within the calling plugin, here in AllPages.
This should be changed soon.
But it would be better to release the current stable fixes first, and
change the filtering within PageList after 1.3.15. Current CVS is
pretty stable.
Haven't checked your recent fixes yet.

PageListFilters:
  left: all valid PageList types, i.e. array_keys($PageList->_types)
  op: =, <>, >,>=,<,<=,
  right: any number or string
Boolean filters: locked=0 or locked=1
String filters: pagename=Test*, pagename<>Test* (á la exclude=Test*)
                   content="*plugin AllPages*"
Numeric filters should include: version<10, version>0, size<=400, ...
-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/
http://spacemovie.mur.at/   http://helsinki.at/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.