Loading...
 

 Login Disabled

On 2017-04-04 we had a rather major disk malfunction that caused data loss. The data on this site is from 2016-11-05. We are still investigating possibilities to get newer backups, but please prepare for the worst. In the meanwhile InterTiki login (for editing) is temporarily disabled on this site.

LIST - filter command


A filter is used to define the search query that will be run to gather a set of results for the list. A large number of possible individual parameters can be 'filtered' as set out in the table below and multiple filter commands can be applied in an additive manner ie the equivalent of an AND operation.

Available filters

Name Description Boolean Sample Tiki Version
categories Match on the object's directly associated categories yes 1 OR 3 7
content Full text search on all of the object's content
Additional field argument can be provided to search for other fields instead of the default ones.
yes hello world 7
exact Exact text search
Use with the field argument to search for an exact title or field value. Can be used to look for empty tracker field {filter field="tracker_field_foobar_text" exact=""}
yes hello world 13
deepcategories Match on the object's categories or their parents, providing deep searching yes 1 OR 3 8
language Search on the object's language (2-letter code) when available. unknown is used when unspecified. yes* en or fr OR unknown 7
type Filter on object type no wiki page (from Tiki 8 you can search for multiple types by providing a comma separated list)
trackeritem to search trackers
7/8

11 or earlier
field to get objects containing the string foo in the name, you can use field="title" and content="foo" (see example below); to search trackers (for type=trackeritem , specify field; for instance, for tracker field "Foo Bar" with permanent name "foobar", you need to write field="tracker_id_foobar" ) no e.g. field="tracker_id_foobar" 11 or earlier
field to search in trackers specify field="tracker_id" and content="1", where 1 is the ID number of the tracker (to filter by field, additionally specify the field name and content to filter by; for instance, for tracker field "Foo Bar" with permanent name "foobar", you need to add {filter field="tracker_field_foobar" content="John Doe"} )
Some field type (like item link) store data using an itemID associate to a value. If you may need to perform a search on the value. To do so add "_text" at the end of the tracker permaname {filter field="tracker_field_foobar_text" content="John Doe"}
no e.g. field="tracker_id" if you want to filter by specific tracker ID or field="tracker_field_foobar" if you want to filter by content of specific tracker field name 12+
range A date (unix timestamp) range
Must have from and to arguments specified
no < searchfieldname > 8
range In Tiki 9, from and to can now take now instead of a unix timestamp, and you can also set either from or to together with "gap" to specify the one relatively to the other no < searchfieldname > 9
textrange A text range
Must have from and to arguments specified
no < searchfieldname > 8
relation Must have certain relation
Additional field arguments objecttype and qualifier (the relationship) must be specified
no < object_id > 8
favorite Show only the favorited objects of a certain user. The feature Wiki Argument Variables must be set at : Admin -> Editing and Plugins -> Wiki argument variables no {{user}} 8
contributors user login to search for as the contributors for the content yes admin OR testuser 8
multivalue needed when filtering on array type fields like users' groups no Customers OR Staff ?
status filtering on item status value is available for tracker item {filter field="tracker_status" content="p"} ? "o", "o OR p", etc ?


* AND matching won't make much sense, single-value field

Boolean Syntax
When applying an individual filter more complex logic can also be applied using a Boolean syntax - that applies to all aspects of Unified Search - e.g. when filtering on content you could exclude all items not containing the word "water" by using:
{filter content="NOT water"}


To filter for a empty or non-empty fields, the syntax might depend on the Unified Index engine.
  • When using "MySQL Full Text Search" or "ElasticSearch" as the Unified Search Engine, you can use these syntaxes:
    • to include all non-blanks non-NULL values:
      {filter content="NOT "}
    • to include all blanks OR NULL values:
      {filter exact=""}


Examples of the use of the filter command


Basic usage
{LIST()}
    {pagination max="10"}
    {filter content="hello world"}
    {filter categories="1 AND 2"}
    {filter language="en or unknown"}
    {filter type="wiki page"}
    {filter range="modification_date" from="2014-01-01" to="last week"}
{LIST}

  • The date filters use strtotime to convert various common formats to Unix epoch. Unlike what the documentation previously said, this has always been the case.
  • Unix timestamps may also be used
Tiki 9
In Tiki 9, the following date filters are possible:
    {filter range="modification_date" from="1317427200" to="now"}
    {filter range="modification_date" to="now" gap="31536000"}
    {filter range="modification_date" from="now" gap="31536000"}


Filter in a specific tracker
{LIST()}
    {list max="10"}
    {filter content="hello world"}
    {filter categories="1 AND 2"}
    {filter content=5 field=tracker_id}
{LIST}


Filter in a specific tracker and the logged user item(s)
{LIST()}
{list max="1"}
{filter content="2" field="tracker_id"}
{filter field="tracker_field_username" content="{{user}}"}
{LIST}


Filter by tracker item status
{LIST()}
  {filter content="2" field="tracker_id"}
  {filter field="tracker_status" content="o OR p"}
{LIST}


Filter tracker items having an empty field (exact match)
{LIST()}
  {filter content="2" field="tracker_id"}
  {filter field="tracker_field_fieldname" exact=""}
{LIST}


Filter wiki pages with a partial match with some text string such as 'foo'
{LIST()}
  {filter type="wiki page"}
  {filter field="title" content="foo"}
{LIST}


Filter wiki pages with a partial match with some text string containing spaces such as 'foo bar'
{LIST()}
  {filter type="wiki page"}
  {filter field="title" content="\"foo bar\""}
{LIST}


Filter wiki pages with an exact match with some text string containing spaces such as 'foo bar'
{LIST()}
  {filter type="wiki page"}
  {filter field="title" exact="foo bar"}
{LIST}


Filter on literal text with spaces in
{LIST()}
    {filter content="\"hello world\" OR \"goodbye world\""}
{LIST}


Filter users in a specific group
{LIST()}
  {filter field="object_type" content="user"}
  {filter field="groups" multivalue="Customers OR Staff"}
{LIST}


All the LIST Plugin commands



doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki