support:caseArticles

Displays the case articles tool. The tool can show articles currently attached to the Case and/or an article Keyword search. This component can only be used in organizations that have Case Feed and Knowledge enabled. Ext JS versions less than 3 should not be included on pages that use this component.

Example 

This example displays the case articles tool.

1<apex:page standardController="Case" showHeader="true">
2                <support:caseArticles id="myCaseArticle"
3                    caseId="{!case.id}"
4                    title="Article Widget"
5                    width="500px"
6                    bodyHeight="200px"
7                    mode="attachedAndSearch"
8                    defaultSearchType="lastPublished"
9                    defaultKeywords="reset issue"
10                    titlebarStyle="expanded"
11                />
12            </apex:page>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
articleTypesStringArticle types to be used to filter the search. Multiple article types can be defined, separated by commas. 25.0
attachToEmailEnabledBooleanA Boolean value that specifies whether articles can be attached to emails. 25.0
bodyHeightStringThe height of the body in pixels (px) or ‘auto’ to automatically adjust to the height of the currently displayed list of articles. 25.0
caseIdidCase ID of the record for which to display the case articles.Yes25.0
categoriesStringData categories to be used to filter the search. The format of this value should be: ‘CatgeoryGroup1:Category1’ where CategoryGroup1 and Category1 are the names of a Category Group and a Category respectively. Multiple category filters can be specified separated by commas but only one per category group. 25.0
categoryMappingEnabledBooleanA Boolean value that specifies whether the default data category mapping pre-filtering should be taken into account or not . 25.0
defaultKeywordsStringThe keywords to be used when the defaultSearchType attribute is ‘keyword’. If no keywords are specified, the Case subject is used as a default. 25.0
defaultSearchTypeStringSpecifies the default query of the article search form when it is first displayed. The value can be ‘keyword’, ‘mostViewed’, or ‘lastPublished’. 25.0
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
insertLinkToEmailBooleanA Boolean value that specifies whether articles can be shared by URL. 25.0
languageStringA language to be used for filtering the search if multilingual Knowledge is enabled. 25.0
logSearchBooleanA Boolean value that specifies whether keyword searches should be logged. 25.0
modeStringSpecifies whether the component displays articles currently attached to the case, an article search form, or both. The value can be ‘attached’, ‘search’, ‘attachedAndSearch’, or ‘searchAndAttached’. 25.0
onSearchCompleteStringThe JavaScript invoked after an article search has completed. 25.0
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global
reRenderObjectThe ID of one or more components that are redrawn when the result of the action method returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs. 25.0
searchButtonNameStringThe display name of the search button. 25.0
searchFieldWidthStringThe width of the keyword search field in pixels (px). 25.0
searchFunctionNameStringThe name of a function that can be called from JavaScript to search for articles if the widget is currently in search mode. 25.0
showAdvancedSearchBooleanA Boolean value that specifies whether the advanced search link should be displayed. 25.0
titleStringThe title displayed in the component’s header. 25.0
titlebarStyleStringThe style of the title bar can be ‘expanded’, ‘collapsed’, ‘fixed’, or ‘none’. 25.0
widthStringThe width of the component in pixels (px) or percentage (%). 25.0