none
Use the ListView Command Set extension for Site Page Ribbon RRS feed

All replies

  • Hi,

    Please check the serve.config options in the official article below. There is not provide a location value to customize the command bar for the modern site page.

    Location: Where the commands are displayed. The possible values are:
    ClientSideExtension.ListViewCommandSet.ContextMenu: The context menu of the item(s).
    ClientSideExtension.ListViewCommandSet.CommandBar: The top command set menu in a list or library.
    ClientSideExtension.ListViewCommandSet: Both the context menu and the command bar (corresponds to SPUserCustomAction.Location="CommandUI.Ribbon").

    More details about serve.config options

    As a workaround, we can add some JS to modern page as part of an SPFx Application Customizer to achieve it.

    The following article with code for your reference.

    COBSPFxApplicationCustomizer_GlobalJS.ts

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, November 29, 2019 8:12 AM
    Moderator
  • Hi,

    Any update?

    If my reply help you, please mark the reply as answer, it will make others who stuck with the similar issue easier to search for valid solutions in this forum.

    Best regards,
    Dennis

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Thursday, December 5, 2019 7:33 AM
    Moderator