none
sharepoint calendar - hide add new event link

    Question

  • Dear Community,

    greatings from italy - i have to hide the "add new event" link in a calendar. The link is only avaible on mouseover. I did not do this with permissions.

    thank you for a little help.

    samedi 5 mai 2012 05:14

Réponses

  • Hi powersmile77,

    You can try injecting css styles on the calendar.aspx webpart page. All you have to do is go to Edit Page > Add "Content Editor" webpart on that page > Insert the following css styles in that "Content Editor" webpart.

    <style type="text/css">	
         table.ms-acal-vcont tbody tr td a {display:none !important;}
    </style>

    The above css will hide the "add new event" link in a calendar. 

    Also be careful while adding content to the content editor webpart. Make sure that the context is added using "Format Text" > "HTML" > "Edit HTML Source" option from the ribbon and not added directly into the webpart. Otherwise it will be rendered as plain text and not as a css style.

    Regards,
    Devang Bhavsar

    samedi 5 mai 2012 14:40
  • I think you are asking a SP 2010 question, and Devang gave you a 2010 answer. If this is a 2010 question then it should be posted in a 2010 forum. (maybe http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/threads)

    In any case, you may want to add the style directly to the page using SharePoint Designer as adding a web part to a view page will break the view menu in 2010. (Go here http://techtrainingnotes.blogspot.com/2010/06/sharepoint-2010-color-coded-calendars.html and scroll down to "Everything (or at least option #1) comes with a price" for more info on this.)


    Mike Smith TechTrainingNotes.blogspot.com

    lundi 7 mai 2012 22:06

Toutes les réponses

  • Hi powersmile77,

    You can try injecting css styles on the calendar.aspx webpart page. All you have to do is go to Edit Page > Add "Content Editor" webpart on that page > Insert the following css styles in that "Content Editor" webpart.

    <style type="text/css">	
         table.ms-acal-vcont tbody tr td a {display:none !important;}
    </style>

    The above css will hide the "add new event" link in a calendar. 

    Also be careful while adding content to the content editor webpart. Make sure that the context is added using "Format Text" > "HTML" > "Edit HTML Source" option from the ribbon and not added directly into the webpart. Otherwise it will be rendered as plain text and not as a css style.

    Regards,
    Devang Bhavsar

    samedi 5 mai 2012 14:40
  • I think you are asking a SP 2010 question, and Devang gave you a 2010 answer. If this is a 2010 question then it should be posted in a 2010 forum. (maybe http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/threads)

    In any case, you may want to add the style directly to the page using SharePoint Designer as adding a web part to a view page will break the view menu in 2010. (Go here http://techtrainingnotes.blogspot.com/2010/06/sharepoint-2010-color-coded-calendars.html and scroll down to "Everything (or at least option #1) comes with a price" for more info on this.)


    Mike Smith TechTrainingNotes.blogspot.com

    lundi 7 mai 2012 22:06