Search page - Adding 'Located in' option from CS2.1 to CS200x

rated by 0 users
Not Answered This post has 0 verified answers | 9 Replies | 1 Follower

Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Mon, Feb 25 2008 8:23 AM

CS2.1 had a located in option on the search page. Has anyone got the code to add this to CS2007?


 
  • Post Points: 5 |

All Replies

Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Tue, Feb 26 2008 2:40 PM In reply to

Bump! has anyone from Telligent got this please, it's on the asp.net search page

 
  • Post Points: 20 |
Ben Tiedt
Top 10 Contributor
3,338 Posts
Points 63,050
CS Developers
By: Ben Tiedt
Posted: Thu, Feb 28 2008 11:43 AM In reply to

 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.

Ben Tiedt's Blog

 
  • Post Points: 20 |
Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Thu, Feb 28 2008 12:42 PM In reply to

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>

 
  • Post Points: 5 |
Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Tue, May 20 2008 6:57 PM In reply to

For some reson this is no longer working, any options set in the tree are ingored, am I missing anything above?

 
  • Post Points: 20 |
Ben Tiedt
Top 10 Contributor
3,338 Posts
Points 63,050
CS Developers
By: Ben Tiedt
Posted: Wed, May 21 2008 1:49 PM In reply to

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.

Ben Tiedt's Blog

 
  • Post Points: 20 |
Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Thu, May 22 2008 8:51 AM In reply to

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?

 

 
  • Post Points: 5 |
Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Tue, May 27 2008 5:05 PM In reply to

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?

 
  • Post Points: 5 |
Dave
Top 10 Contributor
2,282 Posts
Points 14,390
MVPs
By: Dave
Posted: Fri, Jun 6 2008 7:55 PM In reply to

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.

 
  • Post Points: 5 |
Page 1 of 1 (10 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com