Results 1 to 11 of 11

Thread: How to setup details page and frontend multifilter

  1. #1
    User
    Join Date
    06-22-09.
    Location
    Leersum, The Netherlands
    Posts
    60

    Default How to setup details page and frontend multifilter

    Hi everyone,

    I'm setting up my first MetaModel project and I'm struggling with some issues. It's a catalog with items and I want to setup a cataloglist and every item has to have a link to a detailspage.

    I've setup 4 metamodels: catalog, category, lure type and trap type.
    My MM catalog has 11 attributes and for 3 of them are managed in backend with their own MM (category, lure type, trap type).
    I've setup 4 frontend filters inside MM catalog. One for "publish state" which works perfectly. The other three (category, lure type and trap type) are not working!?

    So I've got two questions:
    1. Why are those three frontend filters not working?
    2. How can I create a "catalog item with a link to a details page" setup?

    My setup is:
    Contao 3.5.28
    MetaModels Nightly Builds

    Demopage: http://pherobank.demo4u.nl/catalogue.html

    Hope everything is clear. Thanks for your help!

    Kind regards,
    Bart
    Last edited by Vascom; 09/18/2017 at 21:40.

  2. #2
    User
    Join Date
    06-22-09.
    Location
    Leersum, The Netherlands
    Posts
    60

    Default Setup detailspage is okay now, filter still not working!

    Good morning everyone,

    My second question "How can I create a "catalog item with a link to a details page" setup?" has been solved! I changed my filtersettings to "Simple lookup" on the "Alias" attribute and now it's working.

    But my frontend filters are still not working. I've setup another testsite with the official Contao demo and a really simple MM catalog with MM category. Inside MM catalog there is a tag attribute "category" for frontend filtering. I created one page with frontend cataloglist and one filter "category". But filter is not working!

    Demo: http://metamodels.demo4u.nl/catalogus.html

    I followed al the instructions I found in different tutorials, videos and manual. But I'm deffinately doing something wrong. Hope someone can help me out!

    Kind regards,
    Bart

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

    Default

    o.k. for the next to work with filters, you can look at our checklist: http://metamodels.readthedocs.io/en/...ts/filter.html

    to build the detail link, look at rendersettings http://metamodels.readthedocs.io/en/...rendersettings and choose a redirect page AND a filter set - after this, you have the "jumpTo" key at you render array - you can use http://metamodels.readthedocs.io/en/...templates.html

    note: the base of english manual is the german version - my be you can look at this version...
    Last edited by zonky; 09/19/2017 at 11:05.

  4. #4
    User
    Join Date
    06-22-09.
    Location
    Leersum, The Netherlands
    Posts
    60

    Default

    Hello Zonky,

    Thanks for your reply. I've already read those articles and followed all the instructions. Now I added de debug code to the template. Can you see something strange in the code? I can't (but I'm not a programmer )

    http://metamodels.demo4u.nl/catalogus.html

    Cheers!

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

    Default

    This is your first item:

    Code:
        [0] => Array
            (
                [raw] => Array
                    (
                        [id] => 1
                        [pid] => 0
                        [sorting] => 0
                        [tstamp] => 1505806364
                        [naam] => Item 1
                        [categorie] => Array
                            (
                                [1] => Array
                                    (
                                        [__TAGS_RAW__] => Array
                                            (
                                                [id] => 1
                                                [pid] => 0
                                                [sorting] => 0
                                                [tstamp] => 1505748277
                                                [naam] => Categorie 1
                                                [alias] => categorie-1
                                            )
    
                                        [tag_value_sorting] => 0
                                        [naam] => Categorie 1
                                        [alias] => categorie-1
                                    )
    
                                [2] => Array
                                    (
                                        [__TAGS_RAW__] => Array
                                            (
                                                [id] => 2
                                                [pid] => 0
                                                [sorting] => 0
                                                [tstamp] => 1505804265
                                                [naam] => Categorie 2
                                                [alias] => categorie-2
                                            )
    
                                        [tag_value_sorting] => 1
                                        [naam] => Categorie 2
                                        [alias] => categorie-2
                                    )
    
                            )
    
                    )
    
                [text] => Array
                    (
                        [naam] => Item 1
                        [categorie] => Categorie 1, Categorie 2
                    )
    
                [attributes] => Array
                    (
                        [naam] => Naam
                        [categorie] => Categorie
                    )
    
                [html5] => Array
                    (
                        [naam] => <span class="text">Item 1</span>
                        [categorie] => <ul class="tags">
    <li class="first even categorie-1">Categorie 1</li>
    <li class="last odd categorie-2">Categorie 2</li>
    </ul>
    
                    )
    
                [class] => first even
                [actions] => Array
                    (
                    )
    
                [jumpTo] => Array
                    (
                    )
    
            )
    and the node actions - [jumpTo (for the old version)] - is empty...

    look at your render setting of this list and choose a page and filter - you can make a screenshot

  6. #6
    User
    Join Date
    06-22-09.
    Location
    Leersum, The Netherlands
    Posts
    60

    Default

    Okay, correct me if I'm wrong: the jump to page is only necessary for detailspage, isn't it? In this second case I don't need a detailspage. I just want my frontendfilter to work.
    In this tutorial they show how to setup a frontend filter from a tag attribute and they don't use a jump to page for filtering either!

    http://metamodels.pyropixel.de/news-...l-part-10.html

    Kind Regards,
    Bart

    MetaModels - Contao Open Source CMS 3 5 (1).jpgMetaModels - Contao Open Source CMS 3 5 (2).jpgArtikelen »*Catalogus » Bewerk inhoudselement ID 326 - Contao Open Source CMS 3 5.jpg
    Last edited by Vascom; 09/19/2017 at 23:31.

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

    Default

    look at #3 - you must have a jump-to-page and filter

    the base manual is http://metamodels.readthedocs.io/de/latest/index.html

    and Almut translate this to http://metamodels.readthedocs.io/en/latest/ - if you found a gap, you can send a donate to almut to translate ;-)
    Last edited by zonky; 09/20/2017 at 00:59.

  8. #8
    User
    Join Date
    06-22-09.
    Location
    Leersum, The Netherlands
    Posts
    60

    Default

    Okay, and what kind of content element(s) or module(s) needs the jump to page?

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

    Default

    the CE/Module-MM-List need the jump-to e.g. for links to details pages

  10. #10
    User
    Join Date
    06-22-09.
    Location
    Leersum, The Netherlands
    Posts
    60

    Default

    Thanks, it finally works!

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

    Default

    If you have implemented your first projects with MetaModels, please don't forget to visit this page...

    https://now.metamodel.me/en/supporters/donate

    ;-)

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
  •