[pmwiki-users] History Protect and Merge/Expire

Vince Administration vadmin at math.uconn.edu
Fri Mar 16 13:13:30 CDT 2007


Dear PmWiki Users,
Would it be possible to have the user editing a page multiple times  
to compress his history entries. What I would like to be able to do  
is something
like the ExpireDiff recipe, but only the entries back as far as the  
current authors go, i.e, to stop whenever a different author is  
encountered. All
our users must login, so they are known.

Thanks for your help.
        Vince

On Mar 16, 2007, at 10:39 AM, Patrick R. Michaud wrote:

> On Fri, Mar 16, 2007 at 10:06:34AM +0100, Dominique Faure wrote:
>> On 3/16/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>>> I've just released 2.2.0-beta36, which adds some new features
>>> to pagelist templates.
>> [...]
>>> Thus, instead of writing control breaks using (:if:) directives,  
>>> as in
>>>
>>>   (:if ! equal {<$Group} {=$Group}:)
>>>   Group: {=$Group}
>>>   (:if:)
>>>   * {=$FullName}
>>>
>>> one can now write
>>>
>>>   (:template first {=$Group}:)
>>>   Group: {=$Group}
>>>   (:template each:)
>>>   * {=$FullName}
>>>
>>
>> Out of curiosity, how does it impact on the pagelist performance: is
>> there a significative difference between both solution?
>
> I haven't done any direct measurements yet, but since can cut
> out a lot of unnecessary (:if:) markups to the rendering engine,
> it should be noticeably faster for long lists.  For example,
> the (:template:) directives in the per-group template above reduce
> the number of lines of markup to be rendered by about 75%.
>
>> BTW, this could be nice to have the $StopWatch enabled into
>> pmwiki.org's Test group.
>
> Good idea -- now done.
>
> Pm
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>




More information about the pmwiki-users mailing list