CS2.1 had a located in option on the search page. Has anyone got the code to add this to CS2007?
The UKs best resource for the Golf, Bora, Jetta and Scirocco
Audi Forums, Galleries and Blogs
Bump! has anyone from Telligent got this please, it's on the asp.net search page
In CS2007/CS2007.1, the filter tree can be added by placing a configured <CA:TreeView /> control on the search page and assigning its ID to the <CSControl:SearchForm /> using the SectionTreeViewId property.
Here's the code to add it should anybody need it.
Edit the searchFrom control declaration
<CSControl:SearchForm runat="server" CustomValidatorId="Validator" DateComparerDropDownListId="DateComparer" EndDateTimeSelectorId="EndDate" QueryTextBoxId="Keywords" SectionTreeViewId="SectionTree" SortByDropDownListId="SortBy" StartDateTimeSelectorId="StartDate" SubmitButtonId="SearchButton" TagsTextBoxId="Tags" UsersTextBoxId="Users">
Add the 'Located in' control
<tr style="vertical-align:top"> <td class="CommonFormFieldName"> <CSControl:HelpToolTip runat="server" PopupActivatorCssClass="CommonHelpIcon" PopupActivatorHoverCssClass="CommonHelpIconHover" ToolTipCssClass="CommonHelpToolTip" ToolTipResourceName="SearchAdvanced_Sections_Info" /> <CSControl:ResourceControl runat="server" ResourceName="SearchAdvanced_Sections"/> </td> <td class="CommonFormField"> <CA:TreeView id="SectionTree" DragAndDropEnabled="false" NodeEditingEnabled="false" KeyboardEnabled="true" CssClass="CommonTreeFormArea" NodeCssClass="CommonTreeFormNode" SelectedNodeCssClass="CommonTreeFormNode" HoverNodeCssClass="CommonTreeFormNodeHover" LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16" ItemSpacing="0" ImagesBaseUrl="~/themes/default/images/common/" NodeLabelPadding="3" ParentNodeImageUrl="folder.gif" ExpandedParentNodeImageUrl="folder_open.gif" LeafNodeImageUrl="folder_open.gif" ShowLines="true" LineImagesFolderUrl="~/themes/default/images/file/lines/" EnableViewState="true" runat="server" /> </td></tr>
For some reson this is no longer working, any options set in the tree are ingored, am I missing anything above?
Dave: For some reson this is no longer working, any options set in the tree are ingored, am I missing anything above?
I just looked and the SearchForm control has not been modified since CS2007.1 was released. If this issue just appeared, it *may* be theme-related.
Our theme is just based on the default CS2007 theme with CSS/HTML changes, I can't see how this is theme related? We are using Enterprise Search though, could that be the problem?
Ben,
I've just re-installed CS2007.1 (CS2007.1_3.1.20917.1142.sdk) from scratch and this does not work. When I select forums from the treeview and click 'search' nothing is passed in the querystring to searchresults.aspx like it is on the asp.net website. I'm sure this was working when I added it but that was back in CS2007 SP2 and to be honest I hadn't tried it since.
Is there any chance you look at the asp.net website code for me and see how it is done there?
bump!
I'll presume this control no longer works with CS2007.1 then.
Are there going to be any improvements to the standard search functionality of CS2008+ 'out of the box', ie choosing a forum in which to search in.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com