lupo49 / dokuwiki-plugin-dir

Dir plugin for DokuWiki
http://www.dokuwiki.org/plugin:dir
6 stars 10 forks source link

tags not working #7

Closed bitozoid closed 11 years ago

bitozoid commented 11 years ago

Plugin needs to be loaded before:

# diff -uN syntax.php-v00 syntax.php
--- syntax.php-v00      2012-06-28 17:06:50.000000000 +0100
+++ syntax.php  2013-03-06 13:09:22.000000000 +0000
@@ -377,6 +377,7 @@
       case "sort":
       case "tag":
         $val = split (';', trim ($val, ';')) ;
+        $this->_loadPlugin("tag");
         break ;
       case "noheader":
       case "nohead":
lupo49 commented 11 years ago

https://github.com/lupo49/dokuwiki-plugin-dir/blob/master/syntax.php#L458 https://github.com/lupo49/dokuwiki-plugin-dir/blob/master/syntax.php#L564

lupo49 commented 11 years ago

I just did an update. Please try again with the following syntax ~~DIR?cols=page;user;comments;tags&hdrs=Whatever;User;# Comments&widedesc&tags=<tagname>~~

(Replace with one of your used tags.)

bitozoid commented 11 years ago

Does not work: ~~DIR?cols=page;user;comments;tags&hdrs=Whatever;User;# Comments&widedesc&tags=myasciitag~~ ~~DIR?cols=page;user;comments&hdrs=Whatever;User;# Comments&widedesc&tags=myasciitag~~ ~~DIR?cols=page;user;comments&hdrs=Whatever;User;# Comments&widedesc&tag=myutf8tag~~ Does work: ~~DIR?cols=page;user;comments;tags&hdrs=Whatever;User;# Comments&widedesc&tag=myasciitag~~ ~~DIR?cols=page;user;comments&hdrs=Whatever;User;# Comments&widedesc&tag=myasciitag~~

lupo49 commented 11 years ago

Please have a try with the new version. You were right with loading the plugin. I was checking the wrong line.

bitozoid commented 11 years ago

Sorry for the late post. Same as before.

With the tags key, I get every page. ~~DIR?cols=page;user;comments;tags&hdrs=Whatever;User;# Comments&widedesc&tags=myasciitag~~ ~~DIR?cols=page;user;comments&hdrs=Whatever;User;# Comments&widedesc&tags=myasciitag~~

With the tag key but a non-ascii tag, I get no page. ~~DIR?cols=page;user;comments&hdrs=Whatever;User;# Comments&widedesc&tag=myutf8tag~~