lisps / tagfilter Goto Github PK
View Code? Open in Web Editor NEWDokuwiki Plugin
Home Page: http://dokuwiki.org/plugin:tagfilter
License: GNU General Public License v2.0
Dokuwiki Plugin
Home Page: http://dokuwiki.org/plugin:tagfilter
License: GNU General Public License v2.0
Count lists 1 found element to much because its also counts the header element.
This...
if(flags[1]['count']) {
jQuery('#__tagfilter_'+id).find('.tagfilter_count_number').text((jQuery('#tagfilter_ergebnis_'+id+' .pagelist tr:visible').length - 1) + ' / ' + (jQuery('#tagfilter_ergebnis_'+id+' .pagelist tr').length - 1));
}
...works for me.
The tag filtering works fine if i don't use the list or table or simplelist
flag.
Here is the code that works
{{tagfilter>:?Tag=.*}}
On adding simplelist flag, It does not filter pages according to the selected tag.
{{tagfilter>:?Tag=.*&simplelist}}
I have checked /var/log/apache2/error.log and its empty.
PHP Version => 7.2.10-0ubuntu0.18.04.1
Right now tagfilter (and pagelist) sort by page name. Would it be possible to also have an option to sort by page title (which comes from the first H1 heading of the body, and it is displayed by pagelist/tagfilter in the result field).
There's a crucial usercase for this: non-ASCII script wikis will have page names in strict ASCII but page titles in the typical script for that language (Greek, Cyrillic, etc). Sorting by pagename uses English sorting rules, and those are not producing the correct outcomes for page titles in e.g. Greek letters.
I am using the following Tagfilter
{{tagfilter>
sig:bagsig:peripheral_modules
?Group=group:.=group:bagsig
&withTags=type:module
&nouser
&nodate
&desc
&nofirsthlheader
&noneonclear
&tagimagecolumn=imref.*=tags:bagsig:modules
}}
The inclusion of the &withTags flag results in an empty list. Is there a problem or id the formal incorrect? I can use type correctly as a filter option.
Thanks for your help.
Allan
after upgrading to php8.2 wholw Wik works just not the TagFilter plugin i get following error:
2022-08-12 10:38:05
Error: Call to undefined function mb_convert_case()
/var/www/dokuwiki/lib/plugins/tagfilter/helper.php(92)
#0 /var/www/dokuwiki/lib/plugins/tagfilter/syntax/filter.php(251): helper_plugin_tagfilter->getTagLabel()
#1 /var/www/dokuwiki/inc/parser/renderer.php(117): syntax_plugin_tagfilter_filter->render()
#2 /var/www/dokuwiki/inc/parserutils.php(682): Doku_Renderer->plugin()
#3 /var/www/dokuwiki/inc/parserutils.php(149): p_render()
#4 /var/www/dokuwiki/inc/parserutils.php(89): p_cached_output()
#5 /var/www/dokuwiki/inc/Ui/PageView.php(68): p_wiki_xhtml()
#6 /var/www/dokuwiki/inc/Action/Show.php(37): dokuwiki\Ui\PageView->show()
#7 /var/www/dokuwiki/inc/template.php(100): dokuwiki\Action\Show->tplContent()
#8 [internal function]: tpl_content_core()
#9 /var/www/dokuwiki/inc/Extension/Event.php(133): call_user_func_array()
#10 /var/www/dokuwiki/inc/Extension/Event.php(199): dokuwiki\Extension\Event->trigger()
#11 /var/www/dokuwiki/inc/template.php(85): dokuwiki\Extension\Event::createAndTrigger()
#12 /var/www/dokuwiki/lib/tpl/bootstrap3/main.php(117): tpl_content()
#13 /var/www/dokuwiki/inc/actions.php(27): include('/var/www/dokuwi...')
#14 /var/www/dokuwiki/doku.php(126): act_dispatch()
#15 {main}
I tried to use the root NS
Unfortunatelly I don´t know how to define:
{{tagfilter>:?...
doesn´t work.
Thanks
Hello,
actually the results are sorted this way:
1
10
100
2
Is ist possible to sort them like this:
1
2
10
100
Thanks
I apologize if the answer to this question is obvious. I am just getting started with web related coding and it can be a bit overwhelming! I am using tagfilter on a dokuwiki page and when I use the chosen flag it changes the chosen related formatting to German. I would like the wiki to be in English. I have the general settings set to English. I need to figure out how to change the language specifically in the chosen files. Thanks in advance for your kindness and time!
PHP Parse error: syntax error, unexpected T_FUNCTION in /home/*/html/articles/lib/plugins/tagfilter/action.php on line 28
Proposed workaround:
$f = create_function('$value', 'return strpos($value,"tf") === 0;');
$get_tagfilter = array_filter(array_keys($_GET),$f);
I updated the tagfilter-plugin to version 2023-10-09 and now tag-behavior has changed: While before updating
{{tagfilter>?Projekt=project:.*|Art=art:.*|Detail=detail:.*|Jahr=year:.*&nouser&nodate¬ags&noneonclear&multi&count}}
only showed tags, when I selected some fields in the drop-down-menus (which I consider to be correct), now after the update always a list of all tagged pages is shown and tagfilter displays 221/221 found. (Seems there are in total 221 pages tagged somehow)
Somebody from dokuwiki-forum has already confirmed that behaviour and considers this a bug. Has anybody got an idea what might be wrong and how I could solve this?
Hello!
Is it possible to show only the page with all the tags selected but not those with any tag selected?
Thanks!!!
Hi,
after an upgrade of PHP from 8.0.9 to 8.0.11 dokuwiki (hogfahter) no longer shows proper pages.
In /var/log/apache2/error.log:
Got error 'PHP message: PHP Fatal error: Unparenthesized a ? b : c ? d : e
is not supported. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
in /data/httpd/wiki/lib/plugins/tagfilter/helper/syntax.php on line 74'
Please add the parentheses needed.
Thank you!
versions are
dokuwiki: 2018-04-22b "Greebo"
tag date: 2017-08-24
pagelist date: 2017-08-24
tag-filter date: 2018-10-04
php: 7.0.33-0+deb9u3
with even the simplest syntax, e.g. {{tagfilter>:?Tag=.*}}
, no results are displayed.
Looking into the javascript-console, the error seems to be line 71 of script.js (tagfilter_submit, loop through select boxes) where the "tags" variable is undefined and hence the code breaks. The variable "tags" is assigned in line 32 of script.js (4th statement in tagfilter_submit). While the page clearly has an element with id "#tagdd_"+x, the data function seems to retrieve an undefined tags object from this element.
Not sure, when the code broke. I noticed it a few weeks back, but only now found the time to start investigating it at bit.
Hello,
I've figured out that jquery doesn't use anymore $.browser.
Does mean following:
Here is a quick fix for that behaviour:
jQuery.uaMatch = function( ua ) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
/(msie) ([\w.]+)/.exec( ua ) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || [];
return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
if ( !jQuery.browser ) {
var
matched = jQuery.uaMatch( navigator.userAgent ),
browser = {};
if ( matched.browser ) {
browser[ matched.browser ] = true;
browser.version = matched.version;
}
// Chrome is Webkit, but Webkit is also Safari.
if ( browser.chrome ) {
browser.webkit = true;
} else if ( browser.webkit ) {
browser.safari = true;
}
jQuery.browser = browser;
}
I'd love to see an option to have a count of matched (returned) search items.
Noting fancy but perhaps a code line option like "&count" that would display "Item Count ()" just below or to the right of the "Delete Filter" button.
I would be interested to combine features of the tagfilter and include plugins as follows:
My plan would be,
Are you interested concerning your plugin? If so, I would elaborate deeper and make a pull request.
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.