1
<PublishingWebControls:EditModePanel runat="server" PageDisplayMode="Display" SupressTag="True" CssClass="edit-mode-panel title-edit"> <span class="customerLabel">Namn: </span> </PublishingWebControls:EditModePanel> 

How could i hide customerLabel on edit mode and display in display mode? Doing like this nothing hapepns?

2 Answers 2

1

Just use this tag:

 <PublishingWebControls:EditModePanel runat="server" PageDisplayMode="Display"> [your stuff that you want only to be displayed out of EDIT mode] </PublishingWebControls:EditModePanel 
0

You're code sample looks 100% correct. Ensure you have PublishingWebControls registered.

<%@ Register TagPrefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

Also verify that Page Layout file is checked in and published. Finally you may need to edit actual publishing page you're working with, and select this page Page Layout again for actual page to use the updated Page Layout.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.