We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38901
    • 4 Posts
    I'm having trouble getting [[Multiphotos]] to generate fields in a TV called [*documentGallery*]. Any assistance in where I am going wrong would be appreciated.

    First off, I've installed version 1.21 of the multiphotos plugin on the installation of Evolution that I am running. I've also using the 1.0 version of the accompanying snippet. Both of these work together on another sister site so there is no conflict.

    In my template I'm calling the above by the following -

    [*documentGallery:mphoto:isnot=``:then=`{{documentGallery}}`:else=`[*documentImage:isnot=``:then=`<div class="banner"><img src="[*documentImage*]" alt="[*pagetitle*]" /></div>`*]`*]


    This calls the chunk -

    <div class="content_gallery">
        [[MultiPhotos? &tvname=`documentGallery` &outerClass=`gallery`]]
     </div


    and the two TV's [*documentGallery*] and [*documentImage*]. The first of these should have multiple fields (as in this example - http://www.kunane.com/modx/multi-image-tv.html) but instead it only has the one textarea. The second TV is fine.

    I'm not overly familiar with MODx and know nothing about php. So if anyone could help me out here it would appreciated. Just to add that the above works on a sister site so I gather that the problem is down to me not doing something correctly such as failing to copy a vital step.
    [ed. note: roooney last edited this post 14 years, 7 months ago.]
      • 4310
      • 2,310 Posts
      A couple of things to check :
      Is the Input Type set to text for your TV documentGallery?
      In the MultiPhoto plugin configuration are the TV Id & Template values correctly set?
        • 38901
        • 4 Posts
        That was exactly it! I had neglected to change the id in TV field ( found in the configuration tab of the plugin) to that of the documentGallery. Hours wasted over such a silly and (now) obvious thing :S Thanks very much, bunk.
          • 4310
          • 2,310 Posts
          If I took my own advice I wouldn't have wasted the hours I have wondering why it doesn't work.
            • 29487
            • 385 Posts
            Use the latest version, there are some bug fixes.