You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "David Vittor (JIRA)" <ji...@apache.org> on 2014/08/25 03:10:57 UTC
[jira] [Created] (JSPWIKI-858) Enhance the Index Plugin to filter
Pages, Attachments and Users
David Vittor created JSPWIKI-858:
------------------------------------
Summary: Enhance the Index Plugin to filter Pages, Attachments and Users
Key: JSPWIKI-858
URL: https://issues.apache.org/jira/browse/JSPWIKI-858
Project: JSPWiki
Issue Type: Improvement
Components: Core & storage
Affects Versions: 2.10.1
Reporter: David Vittor
Priority: Minor
Currently this plugin displays All pages in the wiki.
At the top is a "Index Bar" which shows the Alphabetical Index A-Z center aligned. I'm wondering if we could move this to the left (with appropraite margin/padding), and add a Filters section, such as:
* *Filters:* All | *Pages* | Users | Attachments
Note: Only one of the options could be selected at a time.
Options are:
* All - as per current implementation
* Pages - remove all users and attachments
* Users - Only show "Users" pages (i.e. where the pagename matches the username in the database)
* Attachments - Only show pages which are attachments
I think this may require a little bit of medium/advanced Javascript programming, but would be a good way to enhance this plugin.
Another option (not including Javascript) might be to for this plugin to just take a parameter, e.g. "filter=users". And then you have have the plugin multiple times on the page with categories.
{noformat}
!Pages
[{IndexPlugin filter=pages}]
!Users
[{IndexPlugin filter=users}]
!Attachments
[{IndexPlugin filter=attachments}]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)