xif-fr / dokuwiki-plugin-catlist

DokuWiki plugin to list pages and namespaces recursively in nested lists
https://www.dokuwiki.org/plugin:catlist
8 stars 15 forks source link

feature request: hide error message "dontexist" #22

Closed juliusverrel closed 5 years ago

juliusverrel commented 5 years ago

It would be great to have an option to hide the error message if the given doesn't exist.

xif-fr commented 5 years ago

In the case the given namespace don't exist, what would you want to be displayed in place of the list ? Just nothing, or a "red link" ?

juliusverrel commented 5 years ago

For my current use case showing nothing would be best, but I understand this might not be the right thing for every body. Maybe code it in the option

-showError (default) --> shows the current error/warning -showError:"" --> show nothing -showError:"**Namespace doesn't exist**" --> insert string as wiki text

xif-fr commented 5 years ago

This is a good idea. I'll implement it.

xif-fr commented 5 years ago

Finally, I just added the option -hideNotFoundMsg. Could you check if this version fits your needs ?

juliusverrel commented 5 years ago

perfect, thanks a lot!

xif-fr commented 5 years ago

Ok, I will publish a new version one day.