rejetto forum

How to search "from current directory" by default in Advanced Search?

Guest · 3 · 756

0 Members and 1 Guest are viewing this topic.

Eric "Bozo" Winter

  • Guest

I have a foldertree with a lot of subfolders, for each user one.
When a user searches for files, every time the entire foldertree is searched.
This is because the default settings in Advanced Search is "from top directory".
And users generally don't check options because they're busy getting work done.
I like to change this to "from current directory" by default.

How can I configure this?


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Depends on what template and HFS version your using.
In 2.3 build 254 this is what I use. It searches folder you are in
and folders inside that one.
Code: [Select]
<form method="get">
<input type="input" value="" name="search" size="20"/>
<img src="/images/~img44.gif">
<input type="submit" value="Search" />
You might test Menu > Virtual File System > Enable Recursive Listing, if
you need to search only the folder your in, but changing Recursive Listing
might effect something else you'd want to use.
Liked Rejetto's solution posted below, better so I've changed mine like above.
« Last Edit: February 18, 2010, 06:04:33 PM by r][m »

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
i guess he's using rawr template.
i agree about that being a bad default option.

you can change this by editing the template.
search for: <form action="/"
and replace with: <form
in other words, remove: action="/"