dinsdag 11 oktober 2011

SharePoint 2010 page layouts: hiding parts when not in editing mode

Just want to share a quick solution:

If you want to hide certain parts in your custom page layouts when not in editing mode you can use the following control:

   1: <PublishingWebControls:EditModePanel ID="EditModePanel1" class="ewiki-margin" runat="server">
   2:  
   3: </PublishingWebControls:EditModePanel>




Multiple of these controls are possible, just don’t forget to give them a separate ID.

Geen opmerkingen:

Een reactie posten