sp-dev-fx-webparts/samples/react-questions-and-answers/sharepoint/assets/elements.xml

188 lines
6.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Post fields - shared by Question and Reply Content Types -->
<Field ID="{8f1abe02-cc82-477c-be27-6fefaac2cb6f}"
Name="TW_Details"
DisplayName="Details"
Type="Note"
Required="FALSE"
Group="_TW"
NumLines="6"
RichText="TRUE"
RichTextMode="FullHtml"
AppendOnly="FALSE">
</Field>
<Field ID="{b9e9da58-096d-4d3d-bf8c-4034f97461a9}"
Name="TW_DetailsText"
DisplayName="Details Text"
Type="Note"
Required="FALSE"
Group="_TW"
NumLines="6"
RichText="FALSE"
RichTextMode="FullHtml"
AppendOnly="FALSE">
</Field>
<Field ID="{54c33e2a-a458-4ef9-8d7a-f1167887ec5c}"
Name="TW_LikeCount"
DisplayName="Count Likes"
Type="Number"
Required="FALSE"
Group="_TW"
Percentage="FALSE">
<Default>0</Default>
</Field>
<Field ID="{9fb0a0fc-75e9-4224-a9b1-9bb0acc3bdcd}"
Name="TW_LikeIds"
DisplayName="Ids Like"
Type="Note"
Required="FALSE"
Group="_TW"
NumLines="6"
RichText="FALSE"
RichTextMode="Compatible"
AppendOnly="FALSE">
</Field>
<!-- Question Fields -->
<Field ID="{7d4ee5f7-d1cc-4d04-983d-2052031800f5}"
Name="TW_IsAnswered"
DisplayName="Is Answered"
Type="Boolean"
Required="FALSE"
Group="_TW">
<Default>0</Default>
</Field>
<Field ID="{521325f8-6e0a-4b9f-9a53-a34fe70f2488}"
Name="TW_FollowEmails"
DisplayName="Follow Emails"
Type="Note"
Required="FALSE"
Group="_TW"
NumLines="6"
RichText="FALSE"
RichTextMode="Compatible"
AppendOnly="FALSE">
</Field>
<!-- Reply Fields -->
<Field ID="{a41b6b54-7fa0-426b-8bf6-d8b7d07f1baa}"
Name="TW_IsAnswer"
DisplayName="Is Answer"
Type="Boolean"
Required="FALSE"
Group="_TW">
<Default>0</Default>
</Field>
<Field ID="{9b2e96d7-4084-4881-8f6a-91f07eb78ca6}"
Name="TW_HelpfulCount"
DisplayName="Count Helpful"
Type="Number"
Required="FALSE"
Group="_TW"
Percentage="FALSE">
<Default>0</Default>
</Field>
<Field ID="{d78817a1-eaba-48f6-a55a-5ecfe645de46}"
Name="TW_HelpfulIds"
DisplayName="Ids Helpful"
Type="Note"
Required="FALSE"
Group="_TW"
NumLines="6"
RichText="FALSE"
RichTextMode="Compatible"
AppendOnly="FALSE">
</Field>
<Field ID="{672f66ce-f9a0-447e-ba2c-96b1814f1898}"
Type="Lookup"
Name="TW_QuestionLookup"
DisplayName="Related Question"
Required="FALSE"
Group="_TW"
List="Lists/Questions"
ShowField="Title" />
<Field ID="{06fb6a45-b62c-4c31-a82c-4fc95e510029}"
Type="Lookup"
Name="TW_ReplyLookup"
DisplayName="Related Reply"
Required="FALSE"
Group="_TW"
List="Lists/Questions"
ShowField="Title" />
<ContentType ID="0x01008B64E4A73BE90C46A62FC880772E3184"
Name="Question"
Description="Content Type for asking a question"
Group="_TW">
<FieldRefs>
<!--Title Site Column -->
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" />
<!-- TW_Details Site Column -->
<FieldRef ID="{8f1abe02-cc82-477c-be27-6fefaac2cb6f}" />
<!-- TW_IsAnswered Site Column -->
<FieldRef ID="{7d4ee5f7-d1cc-4d04-983d-2052031800f5}" />
<!-- TW_LikeCount Site Column -->
<FieldRef ID="{54c33e2a-a458-4ef9-8d7a-f1167887ec5c}" />
<!-- TW_LikeIds Site Column -->
<FieldRef ID="{9fb0a0fc-75e9-4224-a9b1-9bb0acc3bdcd}" />
<!-- TW_FollowEmails Site Column -->
<FieldRef ID="{521325f8-6e0a-4b9f-9a53-a34fe70f2488}" />
</FieldRefs>
</ContentType>
<ContentType ID="0x0100E33B533F27584848845AF62A7C292F00"
Name="Reply"
Description="Content Type for replying to a question"
Group="_TW">
<FieldRefs>
<!--Title Site Column -->
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" />
<!-- TW_Details Site Column -->
<FieldRef ID="{8f1abe02-cc82-477c-be27-6fefaac2cb6f}" />
<!-- TW_IsAnswer Site Column -->
<FieldRef ID="{a41b6b54-7fa0-426b-8bf6-d8b7d07f1baa}" />
<!-- TW_HelpfulCount Site Column -->
<FieldRef ID="{9b2e96d7-4084-4881-8f6a-91f07eb78ca6}" />
<!-- TW_HelpfulIds Site Column -->
<FieldRef ID="{d78817a1-eaba-48f6-a55a-5ecfe645de46}" />
<!-- TW_LikeCount Site Column -->
<FieldRef ID="{54c33e2a-a458-4ef9-8d7a-f1167887ec5c}" />
<!-- TW_LikeIds Site Column -->
<FieldRef ID="{9fb0a0fc-75e9-4224-a9b1-9bb0acc3bdcd}" />
<!-- TW_QuestionLookup Site Column -->
<FieldRef ID="{672f66ce-f9a0-447e-ba2c-96b1814f1898}" />
<!-- TW_ReplyLookup Site Column -->
<FieldRef ID="{06fb6a45-b62c-4c31-a82c-4fc95e510029}" />
</FieldRefs>
</ContentType>
<!-- FeatureId must match the id of the Custom List Feature -->
<ListInstance
CustomSchema="schema.xml"
FeatureId="00bfea71-de22-43b2-a848-c05709900100"
Title="Questions"
Hidden="TRUE"
VersioningEnabled="TRUE"
Description="Questions List"
TemplateType="100"
Url="Lists/Questions">
</ListInstance>
<Module Name="QuestionsPage" Url="SitePages">
<File Path="QuestionsSitePage.aspx"
Url="Questions.aspx"
IgnoreIfAlreadyExists="TRUE"
ReplaceContent="TRUE"
Type="GhostableInLibrary">
</File>
</Module>
</Elements>