Which property tag should you add at line 07?

You develop a new publishing page layout named MyPage.aspx for a SharePoint site.

You create an Elements.xml file.

Elements.xml contains the following code segment. (Line numbers are included for reference only.)

01 <File Url=”mypage.aspx” Type=”GhostableInLibrary” IgnoreIfAlreadyExists=”TRUE”>
02 <Property Name=”Title” Value=”MyPage” />
03 <Property Name=”ContentType” Value=”$Resources:cmscore,contenttype_pagelayout_name;” />
04 <Property Name=”PublishingAssociatedContentType” Value=”; 05 #$Resources:cmscore,contenttype_page_name;;
06 #0x01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE811;#”/>
07
08 </File>

You need to prevent users from creating pages based on the page layout.

Which property tag should you add at line 07?

You develop a new publishing page layout named MyPage.aspx for a SharePoint site.

You create an Elements.xml file.

Elements.xml contains the following code segment. (Line numbers are included for reference only.)

01 <File Url=”mypage.aspx” Type=”GhostableInLibrary” IgnoreIfAlreadyExists=”TRUE”>
02 <Property Name=”Title” Value=”MyPage” />
03 <Property Name=”ContentType” Value=”$Resources:cmscore,contenttype_pagelayout_name;” />
04 <Property Name=”PublishingAssociatedContentType” Value=”; 05 #$Resources:cmscore,contenttype_page_name;;
06 #0x01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE811;#”/>
07
08 </File>

You need to prevent users from creating pages based on the page layout.

Which property tag should you add at line 07?

A.
<Property Name=”Hidden” Value=”True” />

B.
<Property Name=”PublishingHidden” Value=”True” />

C.
<Property Name=”RequireSiteAdministrator” Value=”False” />

D.
<Property Name=”Rights” Value=”ViewListItems” />

Explanation:
MNEMONIC RULE: “publishing page = PublishingHidden”

How to Restrict page layouts to specific Sites?
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/23f31f34-d244-46f4-8dbb-ca3405d3a6c6



Leave a Reply 0

Your email address will not be published. Required fields are marked *