We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53390
    • 42 Posts
    Hi,
    is there any way (of course without special php snippet programming) to:
    1. make a child album list inside a parent album, like directory and different levels of sub-directories?
    For example: Gallery (top level album list) > Holidays (2nd level album list) > Beach holidays (3rd level album list) > Fiji Islands ..etc.
    2. make the gallery hierarchy (album list > sub album list) as resources - as menu for Wayfinder, so it can work with other extras like breadcrumbs?

    In practice, I imagine when I click on menu item Gallery, I can get album list as second level menu for my Gallery and 3rd level menu under each album if needed. Is it possible to do with the available tools?

    This question has been answered by Bruno17. See the first response.

      • 4172
      • 5,888 Posts
      Could be done with a MIGX - TV or with a MIGXdb - TV and a custom-table, I think also with moregallery
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 53390
        • 42 Posts
        Hi Bruno, thanks for your reply.
        I find it hard to understand what really MIGX is and what it can do. The description is not self explanatory and sounds very abstract.
        A number of questions came to my mind when I read your reply:
        1. Does MIGX replace Gallery extra or should it be used to extend its functionality?
        2. What's the difference between the two MIGX-TV and MIGXdb-TV? Which one is better? I guess db version is faster than JSON?
        3. I don't quite understand how to make that referencing from Gallery.Albums to Resources -> Gallery -> Albums in the resource tab. Or do I need to create manually and link it some way?
        4. After figuring out the 1st level menu for the Gallery, I need to find out how to make 2nd level albums lists for each album. Just wondering, why I can't do it straight in the Gallery snippet by right mouse clicking on an existing album item and choosing something like "Add a new album" so it could create a new table in the db for each existing 1st level album...
          • 4172
          • 5,888 Posts
          MIGX would replace Gallery.
          Your albums and subalbums would just be resources in the tree.
          MIGX would store the images into a TV as json-string.

          If you have a lot of images for each album, it may be better to have them in a custom-table.
          Then, you would use MIGXdb.

          About MIGX and how to set it up:
          https://docs.modx.com/extras/revo/migx

          How you can setup a simple gallery with MIGXdb
          https://docs.modx.com/extras/revo/migxdb/migxdb.tutorials/migxdb.create-a-basic-gallery-management-from-scratch-with-migxdb
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 53390
            • 42 Posts
            Thank you Bruno,
            does MIGXdb support adding tags and keywords and find them in search? [ed. note: zinturis last edited this post 6 years, 5 months ago.]
              • 53390
              • 42 Posts
              I have set up a MIGX-db photo gallery. It's working fine with Weyfinder as a menu that's good. But I have noticed that all albums and their photos written to a single database table. It is fine for 100 photos but what if I want to store 100.000 photos to be accessed by 10k users?
              1. How can I create individual db tables for each album?
              2. Adding an extra field for tags is still an open question..
              • discuss.answer
                • 4172
                • 5,888 Posts
                For Tagging and filtering by Tags, here you go:

                https://docs.modx.com/extras/revo/migxdb/migxdb.tutorials/migxdb.create-a-basic-gallery-management-from-scratch-with-migxdb/add-image-tagging

                I'm sure, there are ways to create and have a single table for each album, but I'm not sure if this really is necessary with proper indexing and caching of your stuff.

                It is possible to manipulate the xpdo-map on the fly with plugins. This way, it should be possible to target different tables with the same schema.
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 53390
                  • 42 Posts
                  A couple more questions came up to my mind related to thumbnails.
                  Currently, my test gallery (and db table) has only single urls to the images that are listed in front-end but normally, a gallery has to list low-res thumbnails as proxies for real hi-res photos. I assume a gallery may need to have more urls hyperlinks like additional resolutions or different formats of the same image or some kind of a pdf or a zip file to download for a given image.
                  So, my questiion is shall I extend the migx db table as described in MigX tutorials "Adding extended fields" paragraph or is there a diffenet way? Along with this, shall I use phpThumbOf plugin for listing of images as thumbnails or does MigX have its own built-in function for that?
                    • 4172
                    • 5,888 Posts
                    I would use pthumb for image-resizing.

                    There are also ways to autocreate thumbnails with different sizes at upload with plugins, if you know exactly, which sizes are needed later.
                    MIGX has a plugin like that included.

                    Usually, you don't need to store all urls to the db.
                    If you really need additional fields, you can either use the extended field, or add new fields to your table by adding them to the schema and run 'add fields' at the MIGX - CMP


                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!