Forum Discussion

barlage's avatar
barlage
Brass Contributor
Feb 02, 2023

Button to copy News page body to a calendar?

We actively use SharePoint News pages for announcements. We also have a maintenance calendar. The issue is deciding whether to post an event as News or put it on the calendar, and it's too time consuming to put it in both places. 

 

So I'm looking for a way to create a button on my news pages that will automatically post the body text to a calendar in the same SharePoint site. Has anyone done anything similar to this before?

  • HI barlage

    sure, this is possible, but you could also just

     

    • add a "MaintenanceDate" column to your site pages library and
    • create a new calendar view on the site page library
    • using the "Maintenance Date" in the fields "Start date on calendar" and "End date on calendar"


    Now you have a "Calendar" View of your news and don't need another calendar list.
    You can edit the "MaintenanceDate" on every page by simply going into "Page details" if you are in edit mode.

    Best Regards,
    Sven

  • SvenSieverding's avatar
    SvenSieverding
    Bronze Contributor

    HI barlage

    sure, this is possible, but you could also just

     

    • add a "MaintenanceDate" column to your site pages library and
    • create a new calendar view on the site page library
    • using the "Maintenance Date" in the fields "Start date on calendar" and "End date on calendar"


    Now you have a "Calendar" View of your news and don't need another calendar list.
    You can edit the "MaintenanceDate" on every page by simply going into "Page details" if you are in edit mode.

    Best Regards,
    Sven

    • barlage's avatar
      barlage
      Brass Contributor

      SvenSieverding, Thank you so much for the reply. This is a great solution and exactly what I was looking for!

      • barlage's avatar
        barlage
        Brass Contributor

        SvenSieverding, I do have one additional question for using this method. Do you know any way to prevent users from uploading documents to the SitePages library if they click on a date on the calendar view? I want users to be able to add news pages, but I don't want them clicking the calendar to try to add an event and then uploading a document to Site Pages. My example is below.


         

Resources