Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#197 Default Search Conditions

FlexWiki
closed-fixed
John Davidson
5
2008-08-24
2008-08-24
John Davidson
No

Allow [All] namespaces to be set as the default search condition

Discussion

  • John Davidson
    John Davidson
    2008-08-24

    Logged In: YES
    user_id=1602893
    Originator: YES

    Feature - 2072041 Default Search Conditions

    Added a default value of None to ContainerUploadType

    Added a configuration setting to flexwiki.config "DefaultNamespaceSearchScope" with vaqlues of Current or All. Current gives the same search behavior as before the change, where All sets the search to all namespaces.

    In the LeftBorder the lines:

    Presentations.FormStart(federation.LinkMaker.LinkToSearchNamespace(aTopic.Namespace.Name), "get"),
    Presentations.HiddenField("namespace", aTopic.Namespace.Name),
    Presentations.InputField("search", "", 15),
    Presentations.ImageButton("goButton", federation.LinkMaker.LinkToImage("images/go-dark.gif"), "Search for this text"),
    Presentations.FormEnd(),

    should be changed to:

    Presentations.FormStart(federation.LinkMaker.LinkToSearchNamespace(aTopic.SearchNamespace), "get"),
    Presentations.HiddenField("namespace", aTopic.SearchNamespace),
    Presentations.InputField("search", "", 15),
    Presentations.ImageButton("goButton", federation.LinkMaker.LinkToImage("images/go-dark.gif"), "Search for this text"),
    Presentations.FormEnd(),

    to enable the new feature from the _NormalBorders.

    A new TopicInfo method, SearchNamespace was exposed giving a string of the namespace to search or All for all namespaces when the appropriate value is set

     
  • John Davidson
    John Davidson
    2008-08-24

    • status: open --> closed-fixed