We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38500
    • 9 Posts
    Hi,

    Really great to discover MODx. I am using Revolution 2.2

    I am developing a site and I need to find a way to generate to generate multiple dynamic <ul> lists. Here is a link to the site: http://www.boening.com.br/index.php?id=3

    This page is a product page, with it template and some template values. I need to add 2 dynamic lists for this page. One for a list of external link in the section "Informações Técnicas". It's a simple case of li>a tags for the client to add links for other sites.

    The other list is for the image gallery. It's a simple UL with img, title and descrition. Should I use getResources? But how to manage 2 types of source content from every product page?
      • 38142
      • 91 Posts
      Obviously, if you want to use getResources, you would have to put each image or link on its own resource. Wouldn't that be unmanageable? Why can't your client not use a rich text editor to create a list of links in the content area of the resource? For the gallery, if the number of images is not too big, why not create TVs for the images and corresponding TVs for their captions all on the same resource?
        • 4172
        • 5,888 Posts
        you can try the MIGX-TV
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 38500
          • 9 Posts
          @cottagestuff I end up with a image gallery that way. A resource for each one... But @Bruno17 MIGX-TV addon seams to be a good answer, I just need to figure out how to use it. smiley
            • 38500
            • 9 Posts
            Hi, I am loving Modx Revo! Thanks for your help! I managed to get it work using MIGX and it turns out to be simple following the doc tutorials. Tks.

            First I need to say MIGX is a great addon. I think you Bruno17 are the developer? (Because of the github repo username). Great work!

            The "links" section was smooth! With the gallery I've had a little more work. Just one issue remaing, when adding imagens to the resource, nothing is showing in the grid view. In the screenshot I added you could see two lines in the table. That lines are working, but nothing is showing. Any Ideas?

            For the form tabs I used:
            [{
            "caption":"Galeria",
            "fields": [{
            "field":"titulo",
            "caption":"Titulo"
            },{
            "field":"descricao",
            "caption":"Descricao"
            },{
            "field":"image",
            "caption":"Image",
            "inputTV":"imageTV"
            }]
            }]

            And for the Grid:
            [
            {"header": "Titulo", "width": "100", "sortable": "false", "dataindex": "titulo"},
            {"header": "Descricao", "width": "160", "sortable": "false", "dataindex": "descricao"},
            {"header": "Image", "width": "50", "sortable": "false", "dataindex": "image"}
            ]

            Tks in advance. And sorry for my english.
              • 4172
              • 5,888 Posts
              you should see the values for titulo and descricao in the grid. Can't say why they are empty.
              If you want to see the image in the grid you need to use the renderimage-renderer for that column:

              [
              {"header": "Titulo", "width": "100", "sortable": "false", "dataindex": "titulo"},
              {"header": "Descricao", "width": "160", "sortable": "false", "dataindex": "descricao"},
              {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
              ]
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!