cosmocode / changes Goto Github PK
View Code? Open in Web Editor NEWDokuWiki Plugin changes
Home Page: http://www.dokuwiki.org/plugin:changes
License: GNU General Public License v2.0
DokuWiki Plugin changes
Home Page: http://www.dokuwiki.org/plugin:changes
License: GNU General Public License v2.0
changes plugin for DokuWiki List the most recent changes of the wiki All documentation for this plugin can be found at https://www.dokuwiki.org/plugin:changes If you install this plugin manually, make sure it is installed in lib/plugins/changes/ - if the folder is called different it will not work! Please refer to http://www.dokuwiki.org/extensions for additional info on how to install extensions in DokuWiki. ---- Copyright (C) Andreas Gohr <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. See the LICENSING file for details
Is there a way to omit new images from the change list? Whenever a user adds a new image it shows up on the change list and is huge, even bigger than the image displayed on the page where it was inserted.
With the option listmedia is activated, the sort order changed to ascending. I think this must be a bug.
I'm seeing the following message pop up on a wiki upgraded to Detritus Warning: in_array() expects parameter 2 to be array, null given in /var/www/dokuwiki/lib/plugins/changes/action.php on line 43
fwiw, I have cachetime
set to -1 (off)
The option "signature" interferes with "dayheaders". If both options are given, the resulting list shows a date header for each and every change. Changes at the same day are not grouped. I assume, this is not deliberate.
---<)kmk(>---
Is there a way to only show some pages?
I know there is a "excludepages" syntax. In fact I just need an opposite of this feature.
My goal is to just show the change log of the page opened itself. Like:
{{change>page=@PAGE@}}
It is useful if you want to export the whole page using dw2pdf and contain the change log in the pdf.
It would be nice if the page name was displayed in a "nice" form, for example: instead of "page_name" it was "Page name"
Would it be possible to show the first header in stead of the file name? (ie “Start” and not “01_start”)
It would make more sense to me when the list contained the same names as in the index..
Would someone know how to create this??
Regards,
Theo Klein
Hello
I have a strange problem with no idea how to solve.
On two wikis (different servers, different hostings) I use the following syntax:
{{changes>5>render = pagelist}}
On one wiki only a list of pagenames appears
on the other wiki a kind of a table with pagenames, changedate and person who changed appears
On both wikis with the same syntax. Both have Greebo installed.
Any idea where to look for differences?
Thanks
Daniel
getPType() is missing in syntax.php, causing markup validation to fail.
Add this to the syntax class:
function getPType() { return 'block'; }
Is it possible to search for changes under a sub namespace?
I know this is possible: {{changes>ns = foo, -bar:baz}}
But I am trying to get this to work: {{changes>ns = bar:baz}}, is it possible?
Hi,
for some reasons, I could not install the plugin automatically, i had to download it and install it manually via the upload.
I just wanted to report the problem.
Thank you
Hi,
I have several templates and want to add a section for changes in subpages of this namespace.
I tried
{{changes>ns=.}} it displays the changes of the whole wiki
or
{{changes>ns=@ns@}} displays nothing.
How can I achive this ?
Regards
On latest Dokuwiki release 2016-06-26a "Elenor of Tsort" the option listmedia enabled cause run time error. The changes list will not rendered and remains empty.
Error is:
Invalid argument supplied for foreach() in .../syntax.php on line 207
array_merge(): Argument #2 is not an array in .../syntax.php on line 210
I installed the Changes plugin a few days ago and chose to display some changes on our Wiki's homepage. The plugin worked as expected right away, but a few days later we started getting a "500 - Internal server error" on only the home page.
After some troubleshooting, I discovered the Changes plugin was to blame. I tried simplifying the {{changes}} query to see if it was a specific option causing the trouble, but the errors didn't go away until I completely removed the query from the page. Just having the plugin installed doesn't seem to be causing any issues.
Unfortunately I'm not savvy enough to offer much information, but here's what I know:
Is it possible to display more than just the one very recent change for a page? If I change something, the prevoius change disappears. I want to keep them all.
Thanks in advance!
Cache invalidation depends on p_get_metadata($ID, 'relation depends'). This is OK for real wikipages which have valid $ID. When plugin is used in locale XHTML files (via p_locale_xhtml) then cache is created but never invalidated.
When I delete a page it is displayed in red in the changes list. Is there an option to NOT show deleted pages?
Hi, today i installed the changes plugin. But I found out that it's showing pages that users have no
permission to read ( unlike the recent changes function of dokuwiki, where users are only shown pages to which they have read access).
Is there any way to provide an option to account for the ACL setting? I really like this plugin! But
if this issue is not solved, I can't deploy this plugin as my users should not be allowed to notice
changes in other groups. (although I know that even if they click into those changes, the ACL will
block them. But I still don't want them to see that there are changes at all)
I really hope that a solution can be provided. Thanks a lot!
Could the user argument be enhanced to allow exclusion of specific user(s)? The ns argument already does this.
My use case is a wiki where one user (me!) is currently making ~90% of the contributions, although other contributors are increasing their input as time goes by; several users have commented that it would be useful to see who else is making changes, since the large number of
I imagine others might find this useful too; consider a wiki where a bot is making edits - might be nice to be able to exclude those, for instance.
The ns argument allows exclusion of specific namespaces; from the documentation:
The ns parameter supports both inclusion and exclusion of the namespaces. If a namespace name starts with a minus sign that namespace will be excluded. Also you can assign a number of namespaces as a comma separated list:
{{changes>ns = -foo}}
{{changes>ns = foo, bar, -bar:ba
I'm not sure if there are any potential issues where a username might start with a -, but anecdotally I don't recall ever seeing a username which started with a -.
Hallo,
der Filter nach User schient nicht zu funktionieren. Wenn ich Einträge mit user = admin 1 anlege und danach mit "{{changes>user=admin1&render=list(signature)}}" filtere, erscheinen trotzdem einträge von allen Usern.
Wer kann helfen?
Gruß,
dbizau
Could it be, that the displayed history is limited to something like a week or so?
I've set a display count of 20 but right now I get only 4 changes but there are a lot more!
Yesterday the oldest I got has been from the week before the 24th december. Today it is only showing changes of the last three days, including today!
If there is a limit, would it be possible to change that to a month or so?
Current Version in use is "Hrun" by the way.
Hi,
changes ist not showing the username anymore when using the signature option. I'm using Release 2013-05-10 "Weatherwax" and the newest plugin version (2013-06-01). Is there a solution for that? Thanks!
Greetings,
Patrick
Is there anyway to only display a certain page based on its name (ie, show every page in the namespaces below named "info", or perhaps a tag embedded in the code of the page (ie displayinchanges)?
Im trying to restrict to changes for a specific page only, but it looks like I can only restrict to it's parent namespace.
NS1:NS2 works, but NS1:NS2:PAGE does not.
Is this the intended behavior? Is there any way of restricting to that single page?
Code :
{{changes>type=create&count=15&maxage=31536000&render=pagelist(user, notags)}}
It's ok but pages eventually disappear before reaching 15
This does not seem to work correctly when using AD/LDAP User Management
Hello,
I have the following question:
The normal list view (render = list) also shows what has changed (eg deleted, created, or the heading where something was changed).
This information is not displayed in the table view (render = pagelist).
Is it possible to display this information in the table view?
If yes, how does it work?
I updated my dokuwiki version from Anteater to Rincewind and the changes plugin (latest release) seems to have stopped working for me.
My sidebar config is very simple:
====== Recent Changes ======
{{changes>render = pagelist(nodate)}}
and the pagelist plugin is the latest version.
If I manually edit the sidebar page (e.g., whitespace change) and save it, the list updates. Dokuwiki's internal "Recent Changes" page is also working normally.
Any idea what might be going wrong?
I had some problems with my wiki never creating cache files because of pages where this plugin is used.
Here caching is disabled:
Line 181 in 17fbd5c
But here we also have an action for adding the necessary depend files of the page on cache use:
Lines 29 to 39 in 17fbd5c
Wouldn't it be possible to add the relations non-persistent, so the next time the page cache get's invalidated, we can re-add the pages listed in the changes list?
Also on the wiki page of this plugin (https://www.dokuwiki.org/plugin:changes) it says about caching: "ACL compatability: [...] but output is cached with the page it is in until a new change was made".
Hi, I have a development wiki that I copy out to my production server for a release. I've noticed that the development wiki (where the edits were actually made) shows the list of recent changes, but when I copy the whole directory out to the production site, none of the changes are shown. Is there a file or folder perhaps that I'm missing in my copy so the recent change information can also be shown on the production wiki? Thanks!
Currently, the changes plugin is hard coded to list changes from old to new. By contrast, the last changes function integrated in dokuwiki lists from new to old.
Please add an option to revert the order of the output.
---<)kmk(>---
Is this plugins supposed to list changes of particular page itself or changes for particular sub-namespace that includes all pages within?
e.g.
{{changes>ns = bar:baz}}
I would like to embed in the page e.g. major changes list from "Old revisions".
Hi,
in my installation "Hogfather" (installed today 11.4.2022), the Plugin "Changes Plugin" can not be found by the Plugin-Search in the admin panel.
DW 2022-07-31a "Igor", Changes Plugin 2021-01-25, PHP 8.0.23, PageList Plugin 2022-06-26
The syntax used to trigger this was:
{{changes>100&render=pagelist}}
but
{{changes>count=100&render=pagelist}}
and {{changes>100&render = pagelist}}
triggered it as well.
I am not sure why the pattern in https://github.com/cosmocode/changes/blob/master/syntax.php#L122 matches as there are no (
, )
in my syntax. But I suspect the root cause is in this line.
The list of recently changed pages does display, seemingly without issues.
fiwswe
With {{changes>render = list&5}}
, I'm getting a list of links to pages and in square brackets I get the names of subsections where the change occurred. Is it possible to create a list with direct links to the subsection of the page?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.