I would like to create a TOC within the FlexViewer 2.1.
This is how I did it in Flex 3.0:
<flexScript:DragPanel id="panelTOC" creationComplete="myPanelCCHandler(event);" title="Table of Contents" cornerRadius="20"
width="250" height="573" backgroundAlpha="0.75" borderColor="#FFFFFF" x="46" y="11">
<ns1:TOCAccordion enabled="true" mouseOut="setTOCout();" mouseOver="setTOCover();" resizeToContent="true" id="accordinTOC"
map="{MainMap}" width="219" height="509" useLayerFadeEffect="true" labelFunction="{layerLabelFunc}" verticalGap="2"
horizontalGap="2" paddingLeft="10" borderThickness="0" borderStyle="none" alpha="0.4" themeColor="#FFFFFF" borderColor="#FFFFFF">
<ns1:categories>
<!-- Each TOC category contains a label and an array of layer IDs. -->
<!--<mx:Object label="Themes" layers="[anno,physical,salesParcels,Parcels,topom,municipal,publicSafety,natural,taxbase]"/>-->
<mx:Object label="Base Map" layers="[Parcels]" id="TOCstart"/>
<mx:Object label="Annotation" layers="[anno]"/>
<mx:Object label="Physical" layers="[physical]"/>
<mx:Object label="Parcel Sales" layers="[salesParcels]"/>
<mx:Object label="Topography" layers="[topo]"/>
<mx:Object label="Municipal" layers="[municipal]"/>
<mx:Object label="Public Safety" layers="[publicSafety]"/>
<mx:Object label="Natural" layers="[natural]"/>
<mx:Object label="Tax Base" layers="[taxbase]"/>
</ns1:categories>
</ns1:TOCAccordion>
</flexScript:DragPanel>
Is the Config.xml (Operational layers) the place you put your layers to get the TOC effect?