Re: [Wikitech-l] Hook for Adding to Empty Search Results

2013-12-13 Thread Nikolas Everett
SpecialSearchResultsPrepend lets you add html directly to the search page but doesn't let you add your own results. The html actually gets injected above the search for so it'd take some css trickery to move it. Example: This wiki is using a new search engine. (Learn

Re: [Wikitech-l] Hook for Adding to Empty Search Results

2013-12-13 Thread Paul Dugas
Thanks Nikolas. I found SpecialSearchResultsPrepend and SpecialSearchResultsAppend looking through the code though I didn't see them in the documentation. I implemented the later to add a section below the standard search results that lists results from my system. Seems to be working for now

Re: [Wikitech-l] Hook for Adding to Empty Search Results

2013-12-13 Thread Nikolas Everett
Glad to hear it! I hadn't seen SpecialSearchResultsAppend before. Unesful. On Fri, Dec 13, 2013 at 9:02 AM, Paul Dugas p...@dugasenterprises.comwrote: Thanks Nikolas. I found SpecialSearchResultsPrepend and SpecialSearchResultsAppend looking through the code though I didn't see them in

Re: [Wikitech-l] Hook for Adding to Empty Search Results

2013-12-13 Thread Benjamin Lees
On Thu, Dec 12, 2013 at 9:15 PM, Paul Dugas p...@dugasenterprises.comwrote: So, I looked at SpecialSearchNoResults but that doesn't allow me to add to the empty results. Maybe it should. I added SpecialSearchResultsAppend and SpecialSearchResultsPrepend to Manual:Hooks. Feel free to add

[Wikitech-l] Hook for Adding to Empty Search Results

2013-12-12 Thread Paul Dugas
I have an extension using the ArticleFromTitle hook to generate pages for components of a large system we operate. There are approximately 6000 components at the moment with static inventory and config data in a database and live status data in a number of other systems. We are using MediaWiki