/ Published in: C#
You need to register this at the top of the page (see code below). Remember you can do this on a layout page as well, instead of the master page.
Then place the PublishingWebControls:EditModePane tag inline (see below). The ID can be anything you want, just make sure not to duplicate it on a layout and master page.
Then place the PublishingWebControls:EditModePane tag inline (see below). The ID can be anything you want, just make sure not to duplicate it on a layout and master page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <PublishingWebControls:EditModePanel ID="EditModePanelMaster" runat="server"> EDIT CONTENT HERE </PublishingWebControls:EditModePanel>