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

May 2, 2008 at 4: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.

thanks
Editor
May 2, 2008 at 3: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:choose>
            <xsl:when test="@name = 'CSharp'>
               <input id="{@name}Checkbox" type='checkbox' data="{@name},{@style},'persist'" value="on" onClick="SetLanguage(this)"/>
           </xsl:when>
           <xsl:otherwise>
               <input id="{@name}Checkbox" type='checkbox' data="{@name},{@style},'persist'" value="off" onClick="SetLanguage(this)"/>
           </xsl:otherwise>
        </xsl:choose>
      <label class="checkboxLabel" for="{@name}Checkbox">
        <include item="{@name}"/>
      </label>
      <br/>
    </xsl:for-each>
  </div>
</xsl:template>
 

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