Url query filtering links not working in modern Sharepoint?

In classic SP tacking a url query onto a page containing a list was a handy way of filtering the content:

 page.aspx?FilterField1=<internal field name>&FilterValue1=<value> 

This no longer works in modern. I’ve tried:

  • adding the query to the news.aspx page:/_layouts/15/news.aspx?FilterField1=&FilterValue1=
  • creating a new page with an unfiltered news web part on it and creating a link with the above query added to the url

Has anyone found a way to get this to work? The alternative is to manually create a page with a filtered news web part on it but that doesn’t seem very “modern”.

Url query filtering links not working in modern Sharepoint?

In classic SP tacking a url query onto a page containing a list was a handy way of filtering the content:

 page.aspx?FilterField1=<internal field name>&FilterValue1=<value> 

This no longer works in modern. I’ve tried:

  • adding the query to the news.aspx page:/_layouts/15/news.aspx?FilterField1=&FilterValue1=
  • creating a new page with an unfiltered news web part on it and creating a link with the above query added to the url

Has anyone found a way to get this to work? The alternative is to manually create a page with a filtered news web part on it but that doesn’t seem very “modern”.

SharePoint List Formatting; Float Left, 31 Items, Displays 10

When using this sample: https://github.com/SharePoint/sp-dev-list-formatting/blob/master/view-samples/document-library-thumbnails/document-library-thumbnails.json

All items should display as formatted and have paging. However, when the list has 31 items, using the formatting from the sample, the number of items displayed will always be no more than 10, no paging available. All works as expected when the list has 30 or fewer items. If the list has 31 or more, only 10 items will be displayed. I can remove one item, refresh, and then all works as expected. Add one more item, refresh, and the view will only show 10. Setting the root element style > float:none, save, refresh, will show all items again. Switching back to style > float:left will trigger the 10 item limit.

Has anyone else encountered this? Here is my JSON for the custom list formatting:

 {   "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",   "hideSelection": true,   "hideColumnHeader": true,   "rowFormatter": {     "elmType": "a",     "attributes": {       "class": "ms-borderColor-neutralLight",       "href": "[$  p002ToolsUrl]"     },     "style": {       "float": "left"     },     "children": [       {         "elmType": "div",         "attributes": {           "class": "ms-bgColor-themeLighterAlt ms-bgColor-themePrimary--hover ms-fontColor-white--hover"         },         "style": {           "display": "flex",           "flex-wrap": "wrap",           "flex-direction": "column",           "align-items": "stretch",           "padding": "1px",           "margin": "10px",           "max-width": "930px",           "box-shadow": "2px 2px 4px darkgrey"         },         "children": [           {             "elmType": "img",             "attributes": {               "src": "[$  p002ToolsImg]"             },             "style": {               "width": "auto",               "height": "300px"             },             "children": [               {                 "elmType": "span",                 "txtContent": "[$  Title]",                 "style": {                   "margin-bottom": "1px"                 },                 "attributes": {                   "class": "ms-fontSize-m ms-fontWeight-regular ms-fontColor-neutralSecondary"                 }               }             ]           }         ]       }     ]   } } 

How to configure sharepoint search for specific lists etc

I have a requirement where they just want sharepoint search to return results from specific lists etc..(and some specific content only compared to the OOTB search result that returns everything)

Some of my ideas below

  1. I was thinking configure out of the box search and setup some scope with specific result source and then use the webpart to display the search result. is this ideal?

  2. use Search API. Will this require a lot of using scripts etc..

    Anyone done something similar and if yes any tips or ideas would be appreciated

Moving Document Library to a subsite in SharePoint

Currently, we have Document Libraries created in SharePoint Online and would like to move them using Powershell to its own Subsite. The reason we would like to move them is that we would like to keep the version history. Since we are dealing with 1000s of files, I would like to use Powershell to complete this task.

I am currently connecting to my SharePoint site using:

Connect-PnPOnline -Url “Sitename” -UseWebLogin

Here is where I need assistance. I am trying to use Move-PnPFolder but I am not sure how to write a command that would define the source, destination, and move of all files in the document library to a subsite that I have manually created.

Help please?