Git Product home page Git Product logo

tagfilter's People

Contributors

chlarsen avatar czocher avatar fjf2002 avatar jipok avatar klap-in avatar lisps avatar micgro42 avatar peterfromearth avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tagfilter's Issues

count list 1 to much

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.

Tag List filtering does not work on PHP 7 with list option

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

Is it possible for tagfilter to sort by page title instead of page name?

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.

Problem with &withTags

I am using the following Tagfilter

{{tagfilter>
sig:bagsig:peripheral_modules
?Group=group:.=group:bagsig
&withTags=type:module
&nouser
&nodate
&desc
&nofirsthl
header
&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

TagFilter PHP8.1 Upgrade critical Error

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}

root NS

I tried to use the root NS

Unfortunatelly I don´t know how to define:

{{tagfilter>:?...

doesn´t work.

Thanks

Sort of results

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

How to change the default language?

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 5.2 compatibility

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

tagfilter-update 2023-10-09 seems buggy

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&notags&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?

TagFilter joins tags "or"

Hello!

Is it possible to show only the page with all the tags selected but not those with any tag selected?

Thanks!!!

Fatal error - deprecated PHP syntax in syntax.php on line 74

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!

TagFilter not showing any results

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.

Jquery doesn't support $.browser anymore

Hello,

I've figured out that jquery doesn't use anymore $.browser.
Does mean following:

  • any view with chosen &nouser&nodate&chosen raise an javascript issue
  • destroy behaviour (no tag filter list)

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;
}

Suggestion for count option

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.

collaboration tagfilter <-> include plugins?

I would be interested to combine features of the tagfilter and include plugins as follows:

  • Embed the form of the tagfilter plugin
  • Instead of listing the hyperlinks of the pages containing the tags, embed the pages themselves using the include plugin.

My plan would be,

  1. Expose the include plugin's render function via a helper class,
  2. Use it inside the tagfilter plugin. Refactoring is necessary.

Are you interested concerning your plugin? If so, I would elaborate deeper and make a pull request.

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.