Giter Site home page Giter Site logo

changes's Introduction

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

changes's People

Contributors

aleksey-maksimov avatar alexanders avatar annda avatar araname avatar brilanto avatar dturkalj avatar dwp-forge avatar fiwswe avatar fosseway avatar gorog avatar haobug avatar irifat avatar klap-in avatar micgro42 avatar mprins avatar nfriedli avatar panone avatar phillip-hopper avatar quark66 avatar rexut avatar samo079 avatar sawachan avatar splitbrain avatar tictactoe101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

changes's Issues

Images are Huge in the Change list

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.

option "signature" interferes with "dayheaders"

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(>---

An opposite of excludepages

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.

Nice page title

It would be nice if the page name was displayed in a "nice" form, for example: instead of "page_name" it was "Page name"

Useheading?

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

Different output on different Wikis

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

Missing getPType()

getPType() is missing in syntax.php, causing markup validation to fail.
Add this to the syntax class:
function getPType() { return 'block'; }

Sub Namespace Search

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?

Can't install automatically

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

Relative Namespace for using in templates

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

Option "listmedia" cause run time error

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

500 Internal Server Error

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:

  • We're running Dokuwiki on IIS Windows setup.
  • We're on Greebo

More than the most recent change

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

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.

deleted pages displayed

When I delete a page it is displayed in red in the changes list. Is there an option to NOT show deleted pages?

Can the changes plug-in only show pages to which users have read access?

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!

User filter: allow exclusion of user(s)

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 -.

Plugin changes: Filter nach user scheint nicht zu funktionieren

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

Ìs the history display limited?

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.

Signature doesn't show username

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

Filter by page or other

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)?

Namespace Broken?

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?

I want view last 15 pages created

Code :

{{changes>type=create&count=15&maxage=31536000&render=pagelist(user, notags)}}

It's ok but pages eventually disappear before reaching 15

LDAP

This does not seem to work correctly when using AD/LDAP User Management

Question about the difference between list and pagelist

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?

Changes not updating with Rincewind

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?

Caching is disabled by default

I had some problems with my wiki never creating cache files because of pages where this plugin is used.

Here caching is disabled:

$R->info['cache'] = false;

But here we also have an action for adding the necessary depend files of the page on cache use:

changes/action.php

Lines 29 to 39 in 17fbd5c

public function beforeParserCacheUse($event)
{
global $ID;
$cache = $event->data;
if (isset($cache->mode) && ($cache->mode == 'xhtml')) {
$depends = p_get_metadata($ID, 'relation depends');
if (!empty($depends) && isset($depends['rendering'])) {
$this->addDependencies($cache, array_keys($depends['rendering']));
}
}
}

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".

What data source is used?

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!

Add an option to revert the order

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(>---

Embedding "Old revisions" into page as table list

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".

Plugin Changes can not be found

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.

PHP Warning: Undefined array key 2 in /dokuwiki-test/lib/plugins/changes/syntax.php on line 125

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

Link to page subsection

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.