Extended Attributes SubForm

Community Server

Group for Content about my AlexCrome.CS addon package for Community Server 2008

Alex Crome.CS 2008.5 Documentation

This wiki contains documentation for my AlexCrome.CS 2008.5 addons for Community Server.

Extended Attributes SubForm

Alex Crome.CS 2008.5 Documentation

Rate This

(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.

Using the Extended Attributes Subform

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

  • ConfigurationFilePath - This is the path to the configuration XML file storing the properties you want the Sub Form to allow you to configure
  • ConfigurationNodeName - This is the node in the configuration XML file that stores the properites you want the Sub Form to allow you to configure.
Sort by: Published Date | Most Recent | Most Useful
Comments
  • 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

  • Hi Alex,

    I cannot go to the link

    alexcrome.co.uk/.../ExtendedAttributesSample.aspx

    Thanks

Page 1 of 1 (2 items)