FAQ Placeholder
Updated: March 28th 2005.
Introduction
This placeholder control extends the XmlPlaceholder and allows business users to contribute a FAQ list which is presented as DHTML. In Presentation Mode, users can expand and collapse each FAQ item. In Authoring Mode, users can add, edit and delete items. The underlying data is stored as XML using a standard XmlPlaceholderDefinition.
This sample provides expanded coverage of the FAQ Placeholder Control which shipped as part of the OTGWeb Sample site. In addition the sample has been decoupled from the OTGWeb site and can be easily deployed within your MCMS applications. The following diagrams show the Placeholder in action.
Why is this sample of interest?
There are two other FAQ Placeholders available. Kathy Shieh's Placeholder is really just an example of extending the HtmlPlaceholder, with an unusable Authoring Mode and hard-coded presentation. The MSIB Plus Pack control is based around a number of postings providing data for the FAQ. This sample is robust and suitable for commercial deployment, and provides a simple interface for business users which doesn't require an understanding of MCMS concepts
Is there a downside?
Yes! The DHTML is currently implemented using HTCs, and whilst this produces clean markup and is efficient, it is not suitable for browsers which do not support HTCs. In addition to this the control does not allow the ordering of FAQ items, HTML markup (e.g. links) within Items or a spell checker.
Can I customise the styling of the control's output?
The style definitions and the HTML emitted by the HTCs can be easily modified to suit your particular needs.
Using the FAQ Placeholder in your applications
The sample is easy to integrate into your MCMS applications.
Note: The import directives will prevent you from switching back to design mode. This can temporarily be bypassed by enclosing them in HTML comment tags.
Download the sample files: FAQ.zip (49Kb)
|