-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3997 from davemehr/develop
new scenario search-verticals-with-parameter
- Loading branch information
Showing
7 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+27 KB
docs/scenarios/assets/search-verticals-with-parameter/configure-search-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.5 KB
.../search-verticals-with-parameter/configure-search-verticals-query-parameter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.5 KB
...scenarios/assets/search-verticals-with-parameter/configure-search-verticals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+116 KB
...arios/assets/search-verticals-with-parameter/example-query-string-parameter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
docs/scenarios/assets/search-verticals-with-parameter/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Search verticals with query string parameter | ||
|
||
!!! note | ||
The PnP Modern Search Web Parts must be deployed to your App Catalog and activated on your site. See the [installation documentation](../installation.md) for details. | ||
|
||
This scenario describes how you can use query string parameters in search verticals and how you can directly open a vertical with the query string parameter from a url. | ||
|
||
## Create a new SharePoint page | ||
Create a new search page and connect the results webpart with the verticals webpart. | ||
|
||
![Create a page](assets/search-verticals-with-parameter/configure-search-results.png) | ||
|
||
## Configure search verticals | ||
Configure the search verticals of your choice with not too long and a useful, clear, "Tab value". I like the icons for an better visual experience for the users. | ||
|
||
![Configure search verticals](assets/search-verticals-with-parameter/configure-search-verticals.png) | ||
|
||
### Configure query string paramter | ||
By default you have a "v" as search query parameter. I like a specific, more meaningful, parameter like "tab". | ||
|
||
![Configure search verticals query parameter](assets/search-verticals-with-parameter/configure-search-verticals-query-parameter.png) | ||
|
||
## Open verticals with query parameters | ||
After the configuration you can add the query string parameter to the url and open the specific search vertical direct from a link in page content or from the SharePoint navigation. | ||
|
||
Sample URL with query string parameter | ||
https://<TENANT>.sharepoint.com/sites/<SITE>/SitePages/>SEARCH-PAGE>.aspx?Tab=Sites | ||
|
||
![Sample search verticals query parameter](assets/search-verticals-with-parameter/example-query-string-parameter.png) |