Targeted Search Link Macro Parameters and Key
Targeted Search Link macro key and configuration options.
Key
Parameter | Description | Expected Input | Example Value(s) |
---|---|---|---|
Link/Button Text | Call-to-action text that appears for the link or button. | Text string |
|
Display as Button | Toggles between displaying the link as text or as a button. | Check mark | |
Search Terms | A word or phrase to submit to the search engine. | Text string |
|
Show Filter Group(s) | Displays only the specified filter group(s) in the sidebar of the search results page after the user clicks the link. Specified filter group(s) must be visible to the current space. If left blank, all filter groups that are visible to the current space will appear in the search results page sidebar. | Filter group name(s); comma-separated if more than one |
|
Hide Filter Group(s) | Hides the specified filters group(s) in the sidebar of the search results page after the user clicks the link. Most useful when Show Filter Group(s) parameter is left blank. Overrides any filter group(s) specified in Show Filter Group(s) parameter. | Filter group name(s); comma-separated if more than one |
|
Search Against Spaces | Limits the search scope to spaces with the specified keys or category labels. Leave blank to search in all spaces. | Space category label(s) and/or key(s); comma-separated if more then one |
|
Show Space Categories | Toggles the visibility of space categories in the sidebar of the search results page after the user clicks the link. | Check mark | |
Search Against Filters | Narrows the search results to content labeled with at least one of the specified filters/labels. | Filter name(s) or label(s); comma-separated if more than one |
|
Exclude Content | Excludes from the search results any content that is labeled with at least one specified filter/label. | Filter name(s) or label(s); comma-separated if more than one |
|
Search Pages | Toggles the option of including pages in the search scope. If selected, search scope will be limited to pages only unless the Search Blogposts and/or Search Attachments option is also selected. Has an OR (search-broadening)* relationship with the other content types that may be selected. If none of the three content types is selected, all three content types will be included in the search scope. | Check mark | |
Search Blogposts | Toggles the option of including blog posts in the search scope. If selected, search scope will be limited to blog posts only unless the Search Pages and/or Search Attachments option is also selected. Has an OR (search-broadening)* relationship with the other content types that may be selected. If none of the three content types is selected, all three content types will be included in the search scope. | Check mark | |
Search Attachments | Toggles the option of including attachments in the search scope. If selected, search scope will be limited to attachments only unless the Search Pages and/or Search Blogposts option is also selected. Has an OR (search-broadening)* relationship with the other content types that may be selected. If none of the three content types is selected, all three content types will be included in the search scope. | Check mark | |
Last Modified Date | Limits the search scope to content that was last modified within the specified time frame. Leave blank to include content that was last modified at any time. | Drop-down menu selection |
|
Button Width | Defines the width of the search link button. Applies only when the Display as Button option above is selected. | Pixels or percentage of the width of the page, Confluence section, or block (if using Theme Press) |
|
*OR relationships among search criteria broaden the scope of the search, resulting in more potential search results with every added criterion.
Example: If you search for documents that have the label "cats" OR "dogs" OR "snakes", you will get all documents that have at least one of these labels attached.
AND relationships among search criteria narrow the scope of the search, resulting in fewer potential search results with every added criterion.
Example: If you search for documents that have the labels "cats" AND "dogs" AND "snakes", you will get only documents that have all of these labels attached.