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

    I am making a gallery page, where each item is an image plus description text.
    I create a TV for the image and a TV for the text (simplifying it)

    Because it is a gallery i create 10 img TVs and 10 text TVs.
    This way the editor(user) can add up to ten items.

    If he does not use all ten slots i make sure to remove them with css.

    I would like to allow the editor to add as much slots as needed, and not limit to the number of slots i prepared.
    I need to template the TVs, i can use a chunk for this. just adding the images to the content area will not suffice.

    I am thinking the solution is some kind of snippet which uses a for loop - but i do not know hardly enough php.
    I hope there is some ready made solution.

    Thanks!

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

    • discuss.answer
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Sounds more complicated than it needs to be.

      I'd suggest MIGX instead http://rtfm.modx.com/extras/revo/migx

      Or, my favorite and go to for galleries:
      https://www.modmore.com/extras/moregallery/
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 48381
        • 21 Posts
        Hi,
        I did not know both of these snippets - I hoped something like this exists smiley

        I briefed through the MIGX docs, i need to invest time to understand it,
        but moregallery looks perfect also for the ease of use of the client.
        Thanks!


        Quote from: frogabog at Feb 06, 2015, 01:47 PM
        Sounds more complicated than it needs to be.

        I'd suggest MIGX instead http://rtfm.modx.com/extras/revo/migx

        Or, my favorite and go to for galleries:
        https://www.modmore.com/extras/moregallery/