You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2007/12/14 20:40:43 UTC

[jira] Commented: (JSPWIKI-100) Displaying a simple count instead of a whole list

    [ https://issues.apache.org/jira/browse/JSPWIKI-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551913 ] 

Harry Metske commented on JSPWIKI-100:
--------------------------------------

I'd like to propose the following:

Two new parameters are introduced:
* countOnly (true/false)
* showLastModified (true/false)

The countOnly parameter will give you just the number of pages, not the list of pages.
It is only valid for the ReferringPagesPlugin, the UndefinedPagesPlugin and the UnusedPagesPlugin.

The showLastModified parameter gives you the last modified date/time of the most recently changed page.
\\It is only valid if countOnly=true, otherwise a PluginException is thrown.
\\It is only valid for the ReferringPagesPlugin and the UnusedPagesPlugin.

I made some changes to AbstractReferralPlugin, and it's subclasses
I have a test/demo available at : http://www.computerhok.nl:10289/JSPWiki/Wiki.jsp?page=ReferralPluginTest

Please let me know what you all think about it before I attach the patches.


> Displaying a simple count instead of a whole list
> -------------------------------------------------
>
>                 Key: JSPWIKI-100
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-100
>             Project: JSPWiki
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Christophe Dupriez
>
> ReferringPages, RecentChanges and other plugins are displaying (sometime long) lists of pages. On the other side, one may want users to consult those lists regularly. The best way may be to put links in the main page of a Wiki which brings the users to those lists and to put a COUNT nearby the link so the user see that there are new entries.
> Example:
> Let suppose you use [Category Discussion] in some pages of your site.
> You make a CategoryDiscussion page containing:
> !!!Pages under peer scrutiny:
> [{INSERT ReferringPagesPlugin exclude='Main,leftmenu,LeftMenu,Category*'}]
> You want to show "Category Discussion: nnn pages" on your main page (nnn being the number of pages containing [Category Discussion]. 
>  By the way, apart from the simple count, the latest modification date of the pages in the list would also be a very nice information. It would then be possible to display:
> [Category Discussion] nnn pages, last modified 2007/12/13 14:56

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.