(see a sample at http://alexcrome.co.uk/demo/ExtendedAttributesSample.aspx - you must be logged in to see and use the subform )
The Extended Attributes SubForm control allows you to quickly and easily collect extra data to store with a section (blog, forum, media gallery, hub) a post (WeblogPost, ForumPost, Thread, MediaGalleryPost), a User or anything else in Community Server which supports Extended Attributes.
The Extended Attributes Subform is configured very much like you configure a Theme's Dynamic Configuration properties through an xml file.
To use the ExtendedAttributesSubForm, you first need to create a config file to store a list of the properties you wish to collect. (A sample file (ExtendedAttributes.config) is included in the download)
You then need to register the ExtendedAttributesSubForm with the form you want to collect additional data on. The following provides some sample markup to display the subform (A file (ExtendedAttributesSample.aspx) including this sample markup + more is included in the download).
<ACControl:ExtendedAttributesSubForm runat="server" ID="EASubform" ExtendedAttributesConfigurationFormId="configuration" ConfigurationFilePath="~/ExtendedAttributes.config" ConfigurationNodeName="UserProfileConfiguration" > <FormTemplate> <CSDynConfig:ConfigurationForm runat="server" id="configuration" RenderGroupsInTabs="false" PanesCssClass="CommonPane" TabSetCssClass="CommonPaneTabSet" TabCssClasses="CommonPaneTab" TabSelectedCssClasses="CommonPaneTabSelected" TabHoverCssClasses="CommonPaneTabHover" > <PropertyFormGroupHeaderTemplate></PropertyFormGroupHeaderTemplate> <PropertyFormSubGroupHeaderTemplate> <div class="CommonGroupedContentArea"> <h3 class="CommonFormSubTitle"><CSDynConfig:PropertySubGroupData Property="Name" runat="server" /></h3> <table cellspacing="0" cellpadding="2" border="0" width="100%"> </PropertyFormSubGroupHeaderTemplate> <PropertyFormPropertyTemplate> <tr valign="top"> <td> <div class="CommonFormFieldName"><CSDynConfig:PropertyData Property="Name" runat="server" /></div> <div class="CommonFormFieldDescription"><CSDynConfig:PropertyData Property="Description" runat="server" /></div> </td> <td class="CommonFormField"><CSDynConfig:PropertyControl runat="server" /></td> </tr> </PropertyFormPropertyTemplate> <PropertyFormSubGroupFooterTemplate> </table> </div> </PropertyFormSubGroupFooterTemplate> <PropertyFormGroupFooterTemplate></PropertyFormGroupFooterTemplate> </CSDynConfig:ConfigurationForm> </FormTemplate> </ACControl:ExtendedAttributesSubForm>
Two things to draw your attention to
Hi Alex,
Finding this is a huge boon. You have great timing. I've been dragging my heels on learning how to rebuild our Create/ Edit User forms and am now at a place where I have to get it done. I know how good your advice is from Telligent's forums, so I have confidence in what you've built.
Thanks,
Erin
I cannot go to the link
alexcrome.co.uk/.../ExtendedAttributesSample.aspx
Thanks