We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28673
    • 178 Posts
    Hi! I’ve got my own js gallery script I always use in static sites. I have to make an image gallery in the home page of my client, and he should be able to upload and use an arbitrary number of images.
    I see I can choose an image for example with the File type. But only one image. Is there any way to let my client choose more than one file, so he could define all the images to use in the gallery in one time?

    I read the docs but found nothing useful to me.
    Would it be possible for example to define a multi-select list box that gets its options from say, a folder in the server (the folder where my client uploads the images)? Or is there any smarter way?

    Thank you!

      • 28673
      • 178 Posts
      Ok, I’ve used the @DIRECTORY binding for now smiley But I’ve got another problem: if I set ’image’ as the output type, it will output image tags with a path like this: /assets/... and not this assets/...
      The first slash in front of assets is wrong, so images don’t show up.

      Could you please help me? I’m quite new to modx..

      Thank you!
        • 26931
        • 2,314 Posts
        anonymized-26931 Reply #3, 16 years ago
          • 28673
          • 178 Posts
          Thank you, this is interesting. But I first want to understand all the things better. First of all, I’d like to undestand the reason why the output has wrong paths.

          Thank you!