public function filters ( $params = null )

Source File: /pods/classes/Pods.php


Parameter Type Details
$params (string or array) Comma-separated list of fields or array of parameters

Additional Parameter Options

Option Type Default Details
fields (string or array) $params Comma-separated list or array of field names
label (string) Search Label of filter submit button
action (string) n/a Action to use in form action=””
search (string) $_GET[$this->search_var] Search string in search field


(string) Filters HTML


Example 1

Only Show Items After Filtering

Filter books Pod by author. An additional conditional check has been added to prevent any items from showing until after the search is run.

See Also