[Pmwiki-users] 0.6-beta -- possible change to search results

Patrick R. Michaud pmichaud
Mon Jan 26 17:04:14 CST 2004


On Mon, Jan 26, 2004 at 11:33:27PM +0100, Christian Ridderstr?m wrote:
> On Mon, 26 Jan 2004, Patrick R. Michaud wrote:
> > Also, rather than adding a parameter to [[$Searchresults]], 
> > I'd probably just create a separate directive such as [[$Searchsnippets]].
> 
> I think I'd prefer addiing an argument instead of increasing the n:o 
> directives, but I'm not really sure. Patrick, what's your reason for 
> preferring a separate directive? (easier to implement or something?)

It's easier to implement, and (more important) easier to customize by 
WikiAdmins.  If someone wants to customize the [[$Searchsnippets]] output 
but leave [[$Searchresults]] alone it's easier to do if they're separate.

> > And to pre-empt the obvious question:  No, I really *don't* have a 
> > good distinction in meanings/interpretation between the [[$Word]] and 
> > [[word:...]] forms of directives.  [...]
> 
> Here's a loose idea: Have all the '$'-directives be parse before the other 
> double brackets. There's no connection with the '$', but it gives it a 
> meaning :-)

Probably won't work without major revisions to the markup (and/or the
PmWiki implementation)--most of the double bracket directives such as 
[[include:]] and [[nogroupheader]] take place long before [[$Word]] 
substitutions do.  

Pm



More information about the pmwiki-users mailing list