Results 1 to 19 of 19

Thread: Help to configure from to range slider filter in metamodel

  1. #1
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default Help to configure from to range slider filter in metamodel

    Hi All,

    Im new in Metamodels. I have developed a website for listing products. For that I created some filters on listing page. I need to modify the range/from to filter as Range slider filter and i just gone through this link https://community.contao.org/de/show...s-Range-Slider.

    I used Metamodel Nighty Buid to implement Metamodel. Modified the folder metamodelsfilter_fromto to metamodelsfilter_fromto_slider. Created a custom template and applied to this in the front_end _filter. Added js and css files. I could see the slider image. But its not working.

    Please help me to get an idea to implement Range Filter.

    Thanks in advance,
    Divya

  2. #2
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    can you post the link to your (test) site?

  3. #3
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    Quote Originally Posted by zonky View Post
    can you post the link to your (test) site?
    Thank you for your reply. I have configured the range slider filter.But the issue is, it doesnot filter values properly. I tried with normal from/to filter. its also not working properly. It shows all values without filtering anything.

    Please reply if any other changes needed
    Last edited by divya; 03/01/2016 at 12:34.

  4. #4
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    Questions:

    * Contao Version
    * MM Nightly Build or Composer
    * MM Version
    * DCG Version
    * which attribute type do you ´ll filter
    * which filter setting
    Last edited by zonky; 03/01/2016 at 13:33.

  5. #5
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    Quote Originally Posted by divya View Post
    Modified the folder metamodelsfilter_fromto to metamodelsfilter_fromto_slider
    ... why that?!?!

  6. #6
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    Quote Originally Posted by zonky View Post
    ... why that?!?!
    Not modified. created replica of the from_to filter for range slider filter.

    Contao Version - 3.5.6
    MM Nightly Build
    MM Version-2.x
    I tried with numeric and decimal type for 'from/to' filter.

  7. #7
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    delete your copy and work with the original - you can override the templates in your /template folder

  8. #8
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    deleted the copy. and override with myown template. Still its not wokring.. shows the message"There are no items matching your search.". Im unable to attach a file. I used the same template described in https://community.contao.org/de/show...s-Range-Slider.

  9. #9
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    Its working now. I have changed the datatype as numeric.Before it was decimal.Thanks zonkey

  10. #10
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    btw: look at github - may be the filter have any bugs...

  11. #11
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default Issue with range slider

    Found an issue with range slider. The min and max value will be changing when i choose multi filters. And then the range slider became deactivated. it shows the min and max value based on the current filtering list. And noticed one more thing,if the list shows the slider field value as ascending order, it will be working fine. otherwise it wont working fine. pls help me to fix the issue

  12. #12
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    can you post your settings of the filter rules (screenshot) and your frontend - or post a link to your (test) page...

  13. #13
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    I have attached the screenshot.Pls check
    Attached Images Attached Images

  14. #14
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    one more attachment
    Attached Images Attached Images

  15. #15
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    o.k. - we have a lot of bugfixes at the "MM pipeline" e.g. to fix any problems of the MM filter...

    if you can wait? ... wait...

    if not, you can/must update your MM per composer to any special packages

    ... and: at first, you schould with the standard output of the filter templates - if works fine, you can change to the HTML5-Range-Input...

  16. #16
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    Quote Originally Posted by zonky View Post

    ... and: at first, you schould with the standard output of the filter templates - if works fine, you can change to the HTML5-Range-Input...
    Yeah I tried with normal from to filter, its also not wokring same as slider filter

  17. #17
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    do you use composer?

  18. #18
    New user
    Join Date
    03-01-16.
    Posts
    12

    Default

    yes

  19. #19
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    160

    Default

    o.k. - you can update different packages to newer on

    look at http://metamodels.readthedocs.org/de...n-via-composer
    but it´s in german ;-(

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
  •