mprins / pagequery

An all-in-one, multi-column page listing plugin for Dokuwiki
https://www.dokuwiki.org/plugin:pagequery
5 stars 4 forks source link

layout=html broken after plugin update #10

Closed tmo26 closed 1 year ago

tmo26 commented 2 years ago

environment

expected behaviour

Display of pagequery result as shown: All pagequery results listed nicely in one column (page shows 2 pagequeries in combination with columns-plugin) grafik

This is the expected and actual behaviour pre-updating to 2022-02-05

actual behaviour

Note: This happens with and without layout=html; layout=column does not show this behaviour, but renders the column way too small, without possibility to increase column width -> layout=column is not suitable as replacement for layout=html)

Display of pagequery result as shown (in combination with columns-plugin): One (and only one!) item of each pagequery column content gets shown above the column grafik

Display of pagequery result as shown (without combination with columns-plugin): One (and only one!) item of each pagequery column content gets shown below the column grafik

steps to reproduce actual behaviour

{{pagequery>* @:toh:avm;
cols=1;
sort=title;
hidestart;
hidejump;
maxns=2;
display={title};
bullet=disc;
}}

error log

No errors shown in php or nginx logs

debug log

DEBUG
Lethert commented 2 years ago

same in my wiki systems after update. I rollback to the old version, that works!

mprins commented 2 years ago

Sorry I don't have an environment to analyse this problem and there seems to be a relation to the columns-plugin; your images are just that, they do not provide the rendered html.

The changes between 2021-12-31 and 2022-02-05 are mostly geared to supporting php 8 and since there were never any rendering unit tests in the original project the criteria for passing is if things work for me.

eg. using {{pagequery>@beschrijvingen ^beschrijvingen:regio -index;fulltext;proper;sort=a,name;group;hidestart;cols=2}} in https://wild-water.nl/dokuwiki/beschrijvingen/index

tmo26 commented 2 years ago

there seems to be a relation to the columns-plugin;

No, there is absolutely no connection to the columns plugin. As shown above, the problem persists even when the columns-plugin syntax is removed from the page. On top of that, I have even completely uninstalled the columns plugin, but the problem persists.

mprins commented 2 years ago

It seems there is no option html in the code, nor in the documentation of the pluging. As the docs says here: https://github.com/mprins/pagequery/blob/53d6e4b85fa10a1cc978e26d3f808d7d297e2ea4/syntax.php#L73 valid options are columns and table (table) being the default perhaps you've been using a different fork of the plugin there is no function to do what you want, only

https://github.com/mprins/pagequery/blob/53d6e4b85fa10a1cc978e26d3f808d7d297e2ea4/PageQuery.php#L786-L797

and https://github.com/mprins/pagequery/blob/53d6e4b85fa10a1cc978e26d3f808d7d297e2ea4/PageQuery.php#L1077-L1085

Klap-in commented 2 years ago

@Lethert could you provide an example of the syntax you are using?

Lethert commented 2 years ago

{{pagequery>*; label=Die letzten 10 Änderungen aus allen Bereichen; sort=mdate:desc; limit=10; bullet=square; display={title} -- {mdate}; hidestart; filter=!name:letzteaenderungen; snippet=inline,10,l2; fontsize=110%; underline; hidejump; }}

Von: Gerrit Uitslag @.> Gesendet: Dienstag, 16. August 2022 09:37 An: mprins/pagequery @.> Cc: Lethert @.>; Mention @.> Betreff: Re: [mprins/pagequery] layout=html broken after plugin update (Issue #10)

@Lethert could you provide an example of the syntax you are using? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

roelvanmeer commented 1 year ago

PR https://github.com/mprins/pagequery/pull/15 fixed an issue with the addHeading function. This might be relevant for your problem.

desbest commented 1 year ago

I have the same issue as well. Also this issue has turned 1 year old TODAY, so now would be a good time for me to fix it. I'll start work on it, later this month. Is there anyone here who can volunteer for testing?

punk-t commented 1 year ago

Hello @desbest I own two independent instances of DW / pagequery, both usable for testing purposes. I'll join.

desbest commented 1 year ago

I've fixed it from my end. I'm just waiting for the maintainer to approve my pull request.

desbest commented 1 year ago

It should be done now. Just to make sure, I tested it again for a second time, at the very end. @punk-t Try testing it on your end.

mprins commented 1 year ago

had to revert @desbest PR because it caused problems for me and others:

desbest commented 1 year ago

So my first pull request was approved however my second pull request was rejected. It seems like I'm seeing some sort of bug or visual quirk, that you lot aren't seeing.

@mprins @punk-t So my question is, does the plugin work, is the layout fixed and most importantly, are you seeing those weird symbols on your screen?

I've just upgraded to the latest version of the plugin, that was just released today and here's what I see. Below is the corresponding syntax tag.

{{pagequery>@:testbook *;fontsize=1.35em;hidestart;hidejump;snippet;showcount;bullet=square;sort=a:asc;heading;display={title}  }}

pagequery visual quirks 1

It's interesting how the before and after of what @mprins saw before and after the 2nd pull request, is the complete opposite of what I saw, from good to bad or bad to good.

mprins commented 1 year ago

you misunderstand; my before is the version from before any of your PR's and which I consider a working version. Perhaps you could add rendering tests to the plugin to make sure things behave as expected

desbest commented 1 year ago

What syntax for the <pagequery> tag are you using @mprins ?

Klap-in commented 1 year ago

Are you both testing with different templates?

desbest commented 1 year ago

Yes it even happens to me on the default theme.

pagequery visual quirks 2

desbest commented 1 year ago

@Klap-in So what <pagequery> syntax are you using?

mprins commented 1 year ago

What syntax for the <pagequery> tag are you using...

a written here: https://github.com/mprins/pagequery/pull/17#issuecomment-1517613735 {{pagequery>@beschrijvingen ^beschrijvingen:regio -index;fulltext;proper;sort=a,name;group;hidestart;cols=2}} using arctic template, see https://wild-water.nl/dokuwiki/beschrijvingen/index

desbest commented 1 year ago

I'll start work on fixing it for the both of us in May.

Klap-in commented 1 year ago

@Klap-in So what <pagequery> syntax are you using?

Sorry, I'm not using this plugin.