[dokuwiki] Re: Ignoring all files/dirs that match a given RegExp (e.g. ^CVS$)

  • From: Reinhold Kainhofer <reinhold@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 31 Aug 2006 23:02:22 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 31. August 2006 20:28 schrieb Esther Brunner:
> Hi Reinhold
>
> > Attached is a patch for the latest stable version ( 2006-03-09b ) which
> > adds a configure key that holds a RegExp that will be used to ignore
> > matching  dirs/files.
>
> I think $conf['hidepages'] does that already. Or is it only for
> pages, not for directories?

No, it doesn't work, at least not with the latest stable version of DokuWiki.

All the CVS directories are still shown in the list of pages in the index ( 
doku.php?do=index ) as well as in the list of namespaces in the window where 
you can paste an image and links to other media files in the editor window. 

It correctly excludes pages (not namespaces) from the index, but it also does 
not hide files from the mediafile selection.

I wanted to hide all CVS directories from DokuWiki altogether (pages 
namespaces and media namespaces). Matching the regexp directly inside the 
search function achieves exactly this.

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna, Austria
email: reinhold@xxxxxxxxxxxxx, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at
 * K Desktop Environment, http://www.kde.org/, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE905iTqjEwhXvPN0RAgpHAJkB0xxcO19Hy249+U7KSQUs4b+kxgCgzGe6
DYahVuw1EljMSihtGzwRIx0=
=kUNg
-----END PGP SIGNATURE-----
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: