in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Niklas Östh's Sharepoint Blog

SharePoint tips and tricks from Sweden.

Using the Audience-field on a pagelayout

If you want to use a audience field on a pagelayout you can use the example below in your aspx. 

...
<%@ Register tagprefix="FieldTypes" namespace="Microsoft.Office.Server.WebControls.FieldTypes" assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
...
<asp:Content contentplaceholderid="PlaceHolderMain" runat="server">
...
    <PublishingWebControls:editmodepanel runat="server" id="editmodepanel">
...
                    <FieldTypes:SPFieldTargetToControl runat="server" FieldName="Audience" AudienceTypes="GlobalAudience" />
...
    </PublishingWebControls:editmodepanel>
...
</asp:content>

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

About niklaso

Developer at Qurius Sweden

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts