Giter Site home page Giter Site logo

dokufreaks / plugin-pagelist Goto Github PK

View Code? Open in Web Editor NEW
30.0 17.0 21.0 231 KB

Lists DokuWiki pages in a nice looking table or unordered list.

Home Page: http://dokuwiki.org/plugin:pagelist

License: GNU General Public License v2.0

PHP 98.97% CSS 1.03%

plugin-pagelist's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin-pagelist's Issues

Mask for Tagcloud entries

It has already been discussed over on the tag plug-in page that it is not possible to create tags in capital letters.

To get around this would it be possible to configure masks for the tags within the cloud plug-in.

Either in in the admin area or in the cloud string itself:

TAGCLOUD ;one_of_my_tags=One_Of_My_Tags;another_one=Another_One

The reason for asking is that I have some abbreviations which are not easily recognisable and would really benefit from being capitalised..

Broken date cell

Shouldn't line 301 in helper.php read

} elseif(!$this->page['date'] && $this->page['exists']) {

instead of

} elseif(!$this->page['date'] && $this->page['exist']) {

Internet Explorer table rows blow up

I use Pagelist as a helper for Task and Tag plugin. My table row heights are too much in Internet Explorer, while in Chrome, and FF they are ok. I use the latest dokuwiki (Release 2017-02-19a "Frusterick Manners") and IE should be recent too (as in picture below). All the best and thank you. Martin
clipboard
afbeelding

reverse sort

enhanced sort function with parameter "rsort" would be fine.

rsort - reverse sorting

Thanks so lot!

Date column value cannot be covered by other plugin

The value of date column isn't accept date by other plugin set ex discussion plugin.
I want to show discussion last comment time .
The plugin also set comment time to date column value but date column value always show the page last modify time not comment time

Sort by date

Having the choice to sort the list by date or page name would make this plugin perfect for me.

Could you add a new Style?

Thanks for the good Plugin! But could you add a List-Style where all Pages in the List have no Bulletpoits? Just the Pagename in a Single line? This would help me (and others?) in some cases.

Thanks, Boris

Option/flag to show parent namespace path of listed pages

When listing pages for example with the Tag Plugin, it would be great to be able to display X parent levels of pages containing the tag.

Would be useful for example if you tag a page "hotpage", to mean the page is to be kept updated then we could be able to list all of theses with their corresponding namespace path in the [start] page.

What do you think ?

Request: Show diff icon

It would be nice if there was a diff icon (Diff icon) in the pagelist that would take you to the diff page.

Option to change appearance of time

In this plugin you can also configure to show the time, nice! Either I would like to change the appearance of the displayed time. So that on some places the time can be removed from the date, that would be nice nuance.
Example: So it shows yy-mm-dd in stead of yy-mm-dd hh:mm

Can't set simplelist in configuration

I'd like to have my page lists default to being normal lists, instead of being in a table. I can make each list do this by appending the flag simplelist, but that's not an option in the configuration interface, and if I change local.php to simplelist instead of list, it gets ignored.

Can we have simplelist be in the configuration options, please?

Suggested additional option

Firstly, thanks for this plug-in.

Would it be possible to add an option to display the page name and the content of the first line, on the same line (to display the pagename and the first headline) ?

For example : <pagelist&pagename&firsthl>
Equivalent to : <pagelist&nofirsthl&firsthl>
Desired Outcome : MY_PAGE_NAME My_first_title Date User

Thx

nspages support?

Hello!

I've been trying to use your plugin together with nspages , since it seems pagelist only needs a list of pages, correct?

Using the following code:

<nspages mvr:issues -h1 -textPages="" -simpleList -nbItemsMax=10>

I should get a list of 10 pages from the mvr:issues namespace. This works. But if I use the following code to use this list with your plugin, I get noting back. No list, just an empty space.

<pagelist&noheader&table>
<nspages mvr:issues -h1 -textPages="" -simpleList -nbItemsMax=10>
</pagelist>

Image

Any idea if it is possible to use these two plugins together?

plugin.info.txt missing!

Hello,
My Dokuwiki complains with lots of php errors about a missing plugin.info.txt file in the plugin folder. Now I just copied another one, but that surely is not the right way to fix this.

bye
christian

getinfo missing

There is no getInfo method in last version. Geting plugin info in plugin manager crashes.

Pagelist settings are not reset on start of a new pagelist

Subsequent pagelists on the same wiki page "adopt" the settings from the previous pagelist on that page.

Imagine the following wiki page:

<pagelist&list&nouser&nodate>
  * [[pagea]]
  * [[pageb]]
  * [[pagec]]
</pagelist>

{{tasks>mytasks?all&noform}}

<pagelist&list&nouser&nodate>
  * [[pagea]]
  * [[pageb]]
  * [[pagec]]
</pagelist>

This will display a pagelist, an overview of "mytasks" created by the task plugin and again a pagelist. The first column of the first pagelist will have the header title "Page". The first column in the task overview will have the title "Task". Instead of the first column of the last pagelist also having the title "Page" it will show the title "Task" (which is wrong).

Pagelist doesn't seems to work properly with Rincewind

Hello,

I'm building a dokuwiki based on Rincewind. I'm using the following plugin versions:

| Dokuwiki ^ Date ^ GIT Version ^ Compatibility ^ Download ^
^ DOKUWIKI | 2011-05-25a | | Rincewind | [[http://www.dokuwiki.org|here]] |
^ blogtng | 2009-12-16 | ab8e844 | Rincewind | [[http://www.dokuwiki.org/plugin:blogtng|here]] |
^ changes | 2011-07-20 | e0e5285 | Rincewind | [[http://www.dokuwiki.org/plugin:changes|here]] |
^ cloud | 2010-01-07 | g3addccd | Rincewind | [[http://www.dokuwiki.org/plugin:cloud|here]] |
^ gallery | 2010-04-30 | d2164e7 | Rincewind | [[http://www.dokuwiki.org/plugin:gallery|here]] |
^ include | 2011-08-21 | ga75ed92 | Rincewind | [[http://dokuwiki.org/plugin:include|here]] |
^ loadskin | 2011-02-07 | g329b62a | Rincewind | [[http://dokuwiki.org/plugin:loadskin|here]] |
^ pagelist | 2010-01-07 | gc3ac680 | Rincewind | [[http://www.dokuwiki.org/plugin:pagelist|here]] |
^ tag | 2011-03-20 | g36b4eb5 | Rincewind | [[http://dokuwiki.org/plugin:tag|here]] |
^ translation | 2010-12-10 | 526fe0f | Rincewind | [[http://www.dokuwiki.org/plugin:translation|here]] |
^ vshare | 2011-02-01 | e34d33a | Rincewind | [[http://www.dokuwiki.org/plugin:vshare|here]] |

I have 3 pages with this content:
Page: Test1
====== openSUSE T1 ======
{{tag>opensuse}}

Page: Test2
====== openSUSE T2 ======
{{tag>opensuse}}

Page: Test3
====== openSUSE T3 ======
{{tag>opensuse}}

Then I have a fourth page to list the opensuse tags as follows:
Page: Listing
===== topic =====
{{topic>opensuse &table}}

The expected result should be a list with the posts with "opensuse" tags, but the rendered html result is:

Topic: OpenSuse

Does this plugin works fine with Rincewind? I do not see anything wrong with what I did, in fact I reproduced a similar structure with Anteater, and the exact same versions of tag and pagelist plugins and it works as expected.

Any suggestions?

Thanks a lot for your help and support!

Regards.

Natural sort order

Can the option to sort with "natural" ordering be added so titles like 2.10 can be sorted below 2.2? This could be minimally invasive by adding an nsort option which would use strnatcmp instead of strcmp.

$fnc = create_function('$a, $b', 'return strnatcmp(noNS($a["id"]), noNS($b["id"])); ');

Alignment of date column with fuzzy dates

It seems that the date column of the table is by default right-aligned. This makes the table look ugly when the flag for fuzzy dates is supplied (%f), i.e. :

%Y/%m/%d %H:%M (%f)

Is there an easy way to change the alignment of the date column?

Request: Option to show tags in columns by topic

I use the pagelist plugin in combination with tagfilter to produce a filterable summary view of a subset of pages. Along with each page, I show all of the tags, which give information about the item described by the page.

It works great, but one additional enhancement would be an option that organizes tags into columns by topic. So, if there was a topic "state" and a series of tags like "state:in_progress", "state:broken", "state:backlog" then pagelist would create a column named "state" and show values "in progress", "broken", "backlog" in cells in that that column.

need sort

for listing discussion i need absolutly (by pagename) sortable columns.

thanks a lot.

table stuff of the lists shows borders

The pagelist entry that has before no borders, now shows up with borders when using newest Dokuwiki template.

I have no borders with: old 'default' template, 'vector' template
I have borders with: 'dokuwiki' template.

  • Do i messed up this myself (i'm quite sure i haven't some overriding css)?
  • Needs the Dokuwiki template an update or this plugin?

Does not work after Hogfather update

I updated the dokuwiki to Hogfather on my Synology.
Now the plugin is failing with following error:
Fatal error: Declaration of syntax_plugin_pagelist::handle($match, $state, $pos, &$handler) must be compatible with dokuwiki\Extension\SyntaxPlugin::handle($match, $state, $pos, Doku_Handler $handler) in /volume1/web/dokuwiki/lib/plugins/pagelist/syntax.php on line 0

Sort by date

Is it possible to sort output from syntax {{topic>tag_name}} by date of creation or modification? It could be very usefull for notes-writing system in DokuWiki.

namespace is hidden

I found that namespace are not shown in pagelist (e.g. if there are two pages named foo:bar and fooo:bar, both pages would be shown as "bar" only), and below is the required fix. Please integrate this fix to git (or at least make it a configurable option...)

Description "desc" should show text after first heading

Hi,
pages listed by pagelist (I use plugin tag - topic function) shows characters from the beginning of the page.

A better way could be something like "firstseconly" which shows first part of the text after the first heading.

nothing is displayed

I used exactly the syntax as in the plug-in page, but nothing happens! No list is shown on my page!

add support for external links

This

<pagelist>
  * [[https://site1.example.com|good service]]
  * [[http://site2.example.com|bad service]]
</pagelist>

will produce an ugly output...
I'd like to have it available too here 👋

Caching in syntax plugin is broken

The pagelist syntax plugin currently fetches all information like page existence or title in the handler. Even though the plugin writes metadata that expires the renderer cache when a page is created or deleted this is of no use as this does not expire the handler cache.

  • Information like page existence or title should be fetched in the render function which should resolve parts of the problem.

Another problem is that when more columns like the description or tags are displayed that

  • a) they should be updated when the referenced page is updated and
  • b) they should not be displayed when the page is inaccessible by the current user.

This could be solved by a cache handler similar to the one that is used by the include plugin.

Note that the whole issue only affects the pagelist syntax and not the usage of this plugin as helper plugin which is probably how most people use this plugin.

Conflict with backlinks2

When backlinks2 is placed after pagelist on a page, it does not work. It lists the backlinks of the previous page. For example:

Page1 link to Page2.
Page2 with backlinks indicate Page1 is calling page. Also link to Page 3.
Page3 with pagelist then backlinks which indicates Page1 is calling page (not Page2).

If the backlinks entry is placed before the pagelist entry it will indicate Page2 is calling page.

My Wiki has a backlinks2 entry at the bottom of each page. I just recently added the pagelist plugin to the Wiki and came across this behavior. Also, if I edit and save Page 3 it will show the correct backlink, until a navigate away and back to it.

Release 2015-08-10a "Detritus"
Ubuntu 14.04 Server
PHP Version 5.5.9-1ubuntu4.14

Filter by namespace in Topic list with tagged pages

Suppose I have namespaces draft and published. I will be giving pages appropriate tags regardless of their draft status.

I want to use Topic to create an index page showing all the published pages (no draft pages) with tags.

How can I most easily do this? If not, can that capability be added?

Can there be a way to use pagination the listings?

When displaying a group of pages, by namespace or tag or such, the table will list every page in that category. In some instances, this can lead to a table several hundred rows long. The ability to use pagination in the results, so that only a certain amount are shown at a time, would be very useful. Maybe it could be displayed as a DataTable or be made compatible with the DataTables plugin.

Rendering Issue with Metadata

I was experiencing problems using the "tasks" plugin which is referencing to the pagelist. Problem was that the pagecontent was sometimes (often) empty when a lot of tasks/subpages had to be listed.
I figured out it was something in the addpage function when getting meta data.
So the function _getMeta is calling p_get_metadata only with ID but there are 2 more parameters. 3rd one "render" allows to control if pages should be rendered. If set to false everything is fine.

So you should perhaps update the code and set the function call to:

p_get_metadata($this->page['id'],false,false);

Show date but not time

I have added an option to show modification date without time (ie. date only).
I have no experience with GitHub (I will look into that oversight at a later date), so I have attached the changes here if someone wants it.

Best regards
Stefan
pagelist.zip

Support for inline style, render as a comma-separated list of results

I think it would be fantastic if it was possible to use a style called inline to render the results as a comma-separated list of results. This would make the tag-plugin so much more useful to me, as I could use tags mid sentence and not only for blocks.

If you can point me to the file which handles the rendering based on the style-attribute I can give it a shot.

pagelist plugin does not have a getInfo() function

The required getInfo() function is missing from the syntax.php file in pagelist. It doesn't cause major issues but you sometimes get an error message appearing at the top of the documentation pages.

More flexible description field

Sometimes the description field doesn´t really provide a description of the page in question because of the way the page is layed out (many headings, no summary at page start). How about giving a way to manually enter the value for the description field as follows:

- [[:testme:start|I am the description for this namespace]]

or something similar. Any feedback greatly appreciated!

lists inset more than regular lists

I'm using this plugin indirectly through the tag plugin. When I list out articles of a given tag, the bullet list is inset more than an unordered list I create manually. I found that changing the following rule so that margins are zeroed out removes the extra space.

div.dokuwiki table.ul ul {
margin: 0 0 0 1.5em;
}

pagelist

Not sure how niche this is, but this is a ticket related to https://forum.dokuwiki.org/thread/14929


====== How-To List ======

<pagelist&list&nouser&nodate>
  * [[documentation:confluence:confluence_howto|How to Upgrade Confluence]]
  * [[documentation:linux:acls|Add ACLs in Linux]]
  * [[documentation:software:windows7:fix_corrupt_profile|Rename Corrupted Win 7 Profile]]
  * [[documentation:how_to:linux_disk_config|How to Create or Extend LVMs]]
  * [[documentation:public:reports|Get Logins from the database]]
</pagelist>

~~NOCACHE~~

The names (eg. "How to Upgrade Confluence") appear incorrectly. As the thread solution says, "After changing the pagelist flag list into simplelist all links were displayed fine. After changing the flag to table the link text were again not displayed."

German symbols with Pagelist

When the Description column is activated I recieve an internal server error if a german letter ä,ö,ü or ß is the last letter in the column.(default is 160, so if one of these letters happens to be in position 160 the wiki crashes). Is this a known problem? Thanks.

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.