Results 1 to 4 of 4

Thread: Filter Information required.

  1. #1
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Filter Information required.

    Can anyone elaborate on this?
    I simply don't understand the extensive literature associated with it

    Key: filter
    Value: Query filter array
    Description: Allows you to add custom filters as arrays, e.g. array('status=?', 'active'). Added in version 2.9.0.
    from http://www.contao.org/reference.html Sorting

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Filter Information required.

    Hi ramjet

    The above is useful if you want to add a predefined filter to the records that are being listed

    just try yourself

    open system/modules/backend/dca/tl_module.php and add the following line to the end of the file:
    Code:
    $GLOBALS['TL_DCA']['tl_module']['list']['sorting']['filter'] = array(array('type=?', 'html'));
    then go to Themes -> Modules and you will see only the record of type 'html'.

    hope this helps.
    Consulenza Contao CMS https://www.intco.it

  3. #3
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Filter Information required.

    Thanks ga.n, that does.

  4. #4
    User
    Join Date
    05-02-10.
    Posts
    121

    Default Re: Filter Information required.

    how html & module sorting?

    Code:
    $GLOBALS['TL_DCA']['tl_module']['list']['sorting']['filter'] = array(array('type=?', 'html' & 'module'));
    sorry for my english

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •