[dokuwiki] Re: enhance search with namespace name
- From: Markus Frosch <markus@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 11 Sep 2009 16:32:51 +0200
> Currently I will only get hits of pagenames after a search. Let’s
> suppose I organized documents in a namespace structure and want to have
> the namespace name included as a search result. Is that easily possible?
> Has anybody already done that or is it planned to be in the core?
I think you are talking about the page name which is listed in the
content results of a search.
This listing depends on the useheading feature in your config, so the
full page name will be replaced with the heading.
When you switch off the useheading setting you will see the full id with
the namespace.
The only way to change this (when you want to use useheading) is to edit
the code, see inc/html.php in function html_search():
<--snip-->
print html_wikilink(':'.$id,useHeading('navigation')?NULL:$id,$regex);
<--snip-->
Maybe we could add a feature to show the full id behind the page title
when useheading is enabled, what do you think splitbrain?
-Markus
--
markus@xxxxxxxxxxxxx
http://www.lazyfrosch.de
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: