about changing the default settings in the drop-down filter that appears in auto-generated topics

May 2, 2008 at 5:31 AM
hi, i am a new user to sandcastle. and i have a question about default drop-down filter setting.default status is all filter items are checked. for example to member filter if i don't want inherited members be listed defaultly, untile user checked it manually. so to language filter ,such i want to only show c# codes defaultly. when user checked VB , then VB code is listed. so how should i do.

May 2, 2008 at 4:12 PM
You could probably modify the devlangsMenu template in the presentation style's htmlBody.xsl transformation (VS2005/Hana). Something like this might work (untested):

<xsl:template name="devlangsMenu">
  <div id="devlangsMenu">
    <xsl:for-each select="$languages/language">
            <xsl:when test="@name = 'CSharp'>
               <input id="{@name}Checkbox" type='checkbox' data="{@name},{@style},'persist'" value="on" onClick="SetLanguage(this)"/>
               <input id="{@name}Checkbox" type='checkbox' data="{@name},{@style},'persist'" value="off" onClick="SetLanguage(this)"/>
      <label class="checkboxLabel" for="{@name}Checkbox">
        <include item="{@name}"/>

May 5, 2008 at 9:57 AM
sorry for the late reply, it do works.
thanks very much,