Reusable content block strategies in SharePoint Modern

Si Hobbs 6 Reputation points
2022-04-06T01:53:46.527+00:00

I would like to have some sort of Document Library or Custom List which is a list of reusable content blocks, effectively a library of HTML snippets. Then an editor can add these snippets to one or more pages and it will just display the HTML (not the title or other metadata).

This documentation page talks about strategies for reusable content, but what I have found:

  • Surely I can avoid programming a custom web part.
  • I have played with content types and lists and surprisingly I've not been able to nail a good solution, although I can see how I could program a solution.
  • The List webpart doesn't allow me to specify one item. Some customisation through views but not enough.
  • I've gone through the app store and not found any good solutions either (some candidates are only compatible with SharePoint Classic).

Can anyone share a SharePoint Online/Modern technique?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,655 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,116 Reputation points
    2022-04-06T08:53:51.56+00:00

    Hi @Si Hobbs ,
    According to my research and testing, you can create Reusable Content in SharePoint.

    Steps:

    Create Reusable Content:
    1.Go to Site content >> Reusable Content List.
    2.Choice Reusable HTML.
    190456-image.png

    3.Enter all the column values and save the list item.

    190428-image.png

    Use Reusable Content:
    1.Go to target Page >> Edit Page.
    2.Click on Page Content field.
    3.Click Insert>> Reusable Content
    4.Select the reusable content that you want to add and it will be inserted in the field.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.