You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a video catalog in SharePoint Online, and I need a single page that dynamically reads metadata from the navigation and filters results in the Search Result web part based on the selected term.
According to the resource https://microsoft-search.github.io/pnp-modern-search/usage/search-results/tokens/#where-can-i-use-tokens, it suggests using the command: {|owstaxidmetadataalltagsinfo:{Page.myTaxonomyMultiColumn.TermID}}. However, unfortunately, this command is not working—search results return 0. I have also tried owstaxidmetadataalltagsinfo:"{URLToken.1}" to filter by a word from the URL, but the result is still 0.
I’ve tried commands like {Page.Term}, {Page.TermID}, owstaxidmetadataalltagsinfo:"{Term.Name}", and many others, but they all return 0 results.
However, when I specify the term name or GUID directly in the query (e.g., owstaxidmetadataalltagsinfo:"software"), the results are displayed correctly.
Could you please clarify whether this is the expected behavior? Does the PnP Search Result Web Part not support dynamic data retrieval from the URL, or am I using incorrect syntax?
This discussion was converted from issue #3976 on September 10, 2024 17:16.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Category
Question
Question
Hello!
I am creating a video catalog in SharePoint Online, and I need a single page that dynamically reads metadata from the navigation and filters results in the Search Result web part based on the selected term.
According to the resource https://microsoft-search.github.io/pnp-modern-search/usage/search-results/tokens/#where-can-i-use-tokens, it suggests using the command: {|owstaxidmetadataalltagsinfo:{Page.myTaxonomyMultiColumn.TermID}}. However, unfortunately, this command is not working—search results return 0. I have also tried owstaxidmetadataalltagsinfo:"{URLToken.1}" to filter by a word from the URL, but the result is still 0.
I’ve tried commands like {Page.Term}, {Page.TermID}, owstaxidmetadataalltagsinfo:"{Term.Name}", and many others, but they all return 0 results.
However, when I specify the term name or GUID directly in the query (e.g., owstaxidmetadataalltagsinfo:"software"), the results are displayed correctly.
Could you please clarify whether this is the expected behavior? Does the PnP Search Result Web Part not support dynamic data retrieval from the URL, or am I using incorrect syntax?
Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions