Page 1 of 1
how do you make a catalogue item to show only .txt files?
Posted: 06 Jan 2012 23:02
by little titty
I understand it is possible to make a catalogue item that you can click on to sort the files in a pane for instance to show only txt files (or at least highlight them). But how?
Re: how do you make a catalogue item to show only .txt files
Posted: 06 Jan 2012 23:53
by Stefan
little titty wrote: ... make a catalogue item that you can click on to ... show only txt files
Use as Location:[
|.txt ]
I think this is the same as Visual Filter (Ctrl+J)
To show all files again use an single
|
This can also be used in the address bar.
- - -
You could also call the Visual Filter dialog by its command ID from the catalog to have an UI.
- - -
I am not sure if we can detect if the view is currently filtered or not, if we can, we could make an script to toggle this setting.
EDIT: Oh yeah, we can:
Use as Location:[
::$VF = get("VisualFilter"); if ($VF=="") {filter "*.txt";} else {filter;} ]
Re: how do you make a catalogue item to show only .txt files
Posted: 07 Jan 2012 10:29
by little titty
WOW thanks for the Uber great reply - you covered all the angles having these options in the catalogue is very convenient - I couldnt find how to do it in the manual - must have been looking in the wrong place.
Re: how do you make a catalogue item to show only .txt files
Posted: 07 Jan 2012 12:31
by Stefan
little titty wrote:... couldnt find how to do it in the manual - must have been looking in the wrong place.
It seams not all can be found from the "Content" page... i had to use "Index" and "Search" tab
to find what i am looking for as so often.
Also the History.txt is an place to find such things.
Re: how do you make a catalogue item to show only .txt files
Posted: 09 Jan 2012 11:38
by admin
FYI: I recommend you tick "Toggle on same filter" (in the context menu of the VF toolbar button) and the "|*.txt" item in the catalog works as a toggle.