Decorator Macro #quickSearch(): parameter for a certain space?

Gustav Stresemann October 13, 2011

Hey,


is it possible to define a spacekey for the decorator macro #quickSearch()? I have found nothing. My current solution works, but I'm still trying to optimize.

Thank you

1 answer

0 votes
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2011

The #quickSearch macro just calls the #customQuickSearch macro like this:

#customQuickSearch("" true true [])

The syntax of the #customQuickSearch is:

#customQuickSearch($prefix $accessKey $quickNavEnabled $searchOptions)

Prefix is just the prefix of the id of the html form. You should be able to pass the space key in the searchOptions:

#customQuickSearch("your-search-id-" true true [{"name":"where", "value":"$yourSpaceKey"}])

Hope this helps

Suggest an answer

Log in or Sign up to answer