I have created a search form in the front page, and the search results
are shown on another page with [results]. But I don't know how to
format the output. I have searched into the docs and the mail list,
and found only one reference to "[results]" in the search tutorial. I
supposed the search command accepts the same parameters than the
search function, but this does not work:
[session search "text='{=query}'" "exclude='pedazo*,
{site.config::systemPages}'" "fmt='<(toc {+p} leader=* sort=title)>
[[{+p}|+]]'"]
The format still is the default breadcrumb.
I see there's a call to BOLTargs before calling the function:
function BOLTXsearch($value, $field) {
global $query, $outarray, $pageLink, $BOLTfieldKey;
$args = BOLTargs($value, 'x_search');
$query = BOLTFsearch($args);
if ($args['output'] != 'escape') $query = BOLTtemplatemarkup($query,
'');
but I have not found "x_search" in the rest of the core files. It
seems is used only by the optional function BOLTargShortcuts, called
at the end of BOLTargs.
I took a look at BOLTargs but I was not sure if the arguments were
being passed, so I put a check in BOLTXsearch:
$args = BOLTargs($value, 'x_search');
foreach($args as $arg) echo $arg; // CHECK POINT
$query = BOLTFsearch($args);
And only the search terms are showed. The other parameters don't pass.
It seems they are not accepted by the regexp in BOLTargs.
I need some help here. How to format the output of [results]?
Thanks,
Marcos
--
http://alinome.net
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---