* kapilover08 Moder I already saw the tutorial in file search using xtscript but I tried to remove some of code like the radion option . Etc. But I didn't. Exactly! I want the Simple file search option. Like a INPUT TEXT and then SUBMIT BUTTON . Can you share me the code? Please!!! I think it is working because I decided that my all files is I'd move already in a one folder.
2015-03-10 19:50 · (0)
* Graham * kapilover08 if you have a very large folder it is best to keep the actual filelist out of xtscript due to timeouts
bog standard simple search using the filter
searches for filenames that start with the query
<!--parser:xtscript-->
# Search form
get search
print {{<div>
<form action="<xt:url>" >
<input type="search" name="search" value="$search" />
<input type="submit" value="go" />
</form>
</div>}}
<!--/parser:xtscript-->
<xt:filelist folder="/files" template="" per_page="10" filter="{_$search|}*" />

Copy code

if you want NO output without a search then change the filter to {_$search|-}*
The form does really have to be xtscript either
<div>
<form action="<xt:url>" >
<input type="search" name="search" value="{_$search|}" />
<input type="submit" value="go" />
</form>
</div>
<xt:filelist folder="/files" template="" per_page="10" filter="{_$search|}*" />

Copy code

works just the same
2015-03-10 20:09 (edited 2015-03-10 20:46 by Graham ) · (0)
* kapilover08 * Graham Thank for sharing moder. God bless you
2015-03-10 21:20 · (0)

Online: Guests: 1