hwdevteam VIP
Total posts: 76
12 Feb 2014 23:35

Is there a php snippet that will tell me if there is an active record filter in place ?

The reason is, I need to show some text in a page, only IF the results are filtered.

Thanks!

Last Modified: 07 Mar 2014


Sergey
Total posts: 13,748
13 Feb 2014 02:29

You can check markup template. For example

if($this->worns)
{
   // some filters are set
}

Indicate if there is at least one filter set.

If you need particular filter just fetch $this->worns. It is an array of filters applied. Then you can use var_dump() to see what is inside.


hwdevteam VIP
Total posts: 76
07 Mar 2014 13:23

Perfect - Thanks..

Powered by Cobalt