[dokuwiki] Two minor feature requests (w/ patches @ GitHub)

  • From: "Philipp A. Hartmann" <dokuwiki@xxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 11 Aug 2012 00:32:37 +0200

Dear all,

I'm locally maintaining two small patches used in some of my DokuWiki
sites since quite a while.  I never found the time to actually submit
those for discussion to the list.

Finally, I have cleaned them up, and opened two pull requests at GitHub
today.  Let me briefly outline their contents:

1. Optionally suppress start page in "You are here" navigation
  - https://github.com/splitbrain/dokuwiki/pull/124

In this patch series, an additional value for '$conf['youarehere'] is
proposed to omit listing the start page in "You are here".

Especially in combination with $conf["useheading"], the start page may
include too much clutter at deeper levels of the site hierarchy.  With
this additional option, the start page can be suppressed at lower levels.

    $conf["youarehere"] now behaves as
    0 : off
    1 : include start page in navigation (as before)
    2 : suppress start page (except on start page)

2. Add action 'purge' to force page regeneration
  - https://github.com/splitbrain/dokuwiki/pull/124

This pull-request adds a new (convenience) action to DokuWiki, which can
be used in custom templates called 'purge'.  It is merely a 'show'
action while purging the cache for the current page [1] by appending
'purge=true' to the URI.

The main use-case here is the inclusion of semi-dynamic pages, which are
not fully integrated into the DokuWiki caching system.  Only existing
pages can be refreshed by users with write access.

[1] https://www.dokuwiki.org/devel:caching#purging_the_cache

I'm looking forward to your comments both via mail or directly at
GitHub.  Please forgive me, if I failed to follow the preferred way to
submit such requests.

Greetings from Oldenburg,
  Philipp

PS: I finally realized that I need to send the mails from a subscribed
    address.  Apologies for any resulting moderation requests from my
    initial try.
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] Two minor feature requests (w/ patches @ GitHub) - Philipp A. Hartmann