1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use XenForo_Helper_Criteria::pageMatchesCriteria()?

Discussion in 'XenForo Development Discussions' started by Liam W, Aug 1, 2013.

  1. Liam W

    Liam W Well-Known Member

    I'm using the titular function, however I have no way to get the container parameters.

    I'm calling this in a template hook callback function, and it doesn't seem to work for nodes. How can I get the container parameters?

  2. Dadparvar

    Dadparvar Well-Known Member

    I'm using template helper in an add-on and display a list using it.

    In php side I want to use pageCriteria to filter the list.

    is it possible this way? (this way = using template helper)

    in IF I use this:
    XenForo_Helper_Criteria::pageMatchesCriteria($list['page_criteria'], true, $template->getParams(), $containerData)
    but I tested lots of things to get the parameters but couldn't make it work in my case.

  3. Dadparvar

    Dadparvar Well-Known Member

    anyway, I got what I wanted by changing helper and using get and using callback in template instead of getting info using template helper.

    Thanks @Siropu for your great guide. warmly appreciated.
    Siropu likes this.

Share This Page