Forum Discussion

Miguel Isidoro's avatar
Miguel Isidoro
Brass Contributor
Feb 20, 2017

Multi page picker in web part

Hello,

 

Does anyone know any example of a web part that allows to open up a modal that enables the search of other SharePoint pages and save the pages urls or ids in the web part properties? 

The scenario I want is a web part to show highlights in a page and let the user select what content should be highlighted.

 

I know I can use page metadata to classify content (using for example term sets) and build Content Search Web Part but having a web part to allow users to select the content they want to show in the web part in the page context seems more logic from the content manager standpoint.

 

Thanks,

Miguel Isidoro

5 Replies

  • Asish Padhy's avatar
    Asish Padhy
    Brass Contributor

    Seems to be a custom web part requirement. Do you have scope for a custom build - Client side or Server side? or it has to be an OOB or pre-built webpart.

    • Miguel Isidoro's avatar
      Miguel Isidoro
      Brass Contributor

      Hello Asish,

       

      It is a custom web part requirement (server-side), do you know of any community project (Codeplex or other) that has some code I can reuse? I am not probably the first person with this requirement and I guessed someone already implemented something I could partially reuse.

       

      Searched the web but didn't find anything.

       

      Given the complexity to implement this kind of solution, I will probably use a solution based on content search web parts (SharePoint 2013 only) to query content that will be classified using managed metadata columns in the page libraries. It is not exactly the same but still will give users a great degree of flexibility.

       

      Thanks,
      Miguel

       

      • Asish Padhy's avatar
        Asish Padhy
        Brass Contributor

        Hi Miguel,

         

        Sorry but don't have info of any solutions or third party web parts at present that could satisfy your requirement.

         

        Regarding the solution, going with your approach, a custom display template with content search web part that provides the highlighted text from metadata properties of the page could work. This is easy and straightforward.

         

        However the complexity is with another requirement in the earlier post - "open up a modal that enables the search of other SharePoint pages and save the pages urls or ids in the web part properties?". This seems to be a far-fetched UX approach for a simple requirement. Could you justify the need for the same? or else you might end-up introducing complexity.

         

        Thanks,

        Asish

         

  • There are two out of box webparts in the Modern site that might be of interest.

    First is the modern document libraries and that enables users to pin important files to the top - so it is always accessible.

    There is also the upcoming SPFx links webpart, which you can configure at the homepage of a site that you can point the site members to.
    • Miguel Isidoro's avatar
      Miguel Isidoro
      Brass Contributor

      Thanks John, sorry that I didn't mention it earlier but the requirement is for SharePoint 2010 and 2013 on-prem.

       

      Thanks,

      Miguel

Resources