What's the hooking way to redirect search to a custom advanced search system? I could imagine doing this by extending class SpecialSearch...but I don't know how to get the system to instantiate the subclass instead of the base class.
"Imagine" here includes imagining that I actually understand oo programming, a condition that currently evals to false. : )
Jim ===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
On Feb 15, 2007, at 11:26 AM, Jim Wilson wrote:
This would run into serious problems with stuff like system messages (which contain lots of wikitext, at least by default) and hardcoded strings (many of which are at least going to be HTML, if perhaps not often wikitext). Nice idea, though.
Thanks Simetrical, that's a good point. Definitely something to consider when attempting to extend the Parser.
Can anyone think of something they currently can't achieve with the existing hooks? Something that might be solvable with a Factory class?
-- Jim
On 2/15/07, Simetrical Simetrical+wikilist@gmail.com wrote:
On 2/15/07, Jim Wilson wilson.jim.r@gmail.com wrote:
Alternate Parsers - Extension developers could implement alternate
parsers.
This _could_ put an end to the _italicized_ and *bold* debates. It might also offer a way to allow pages to use any of a number of different
parsers
for different purposes. Maybe have some pages use MW syntax, while
others
use full XHTML with the aid of a WYSIWYG editor (not a full solution to
that
debate, but it's something).
This would run into serious problems with stuff like system messages (which contain lots of wikitext, at least by default) and hardcoded strings (many of which are at least going to be HTML, if perhaps not often wikitext). Nice idea, though.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l