We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43864
    • 151 Posts
    Maybe a stupid question, I don't know. But I want to get a single item out of a Migx list that has the same number as the id of a galleryalbum. Why? Because I want to display other information on the galleryalbum according to the language. (in Gallery you can only set one value for all languages)

    I try with this:

    [[getImageList? &docid=`12` &tvname=`pics` &tpl=`pics-info` &where=`{"album:=":"[[+gallery.id]]"}`]]


    But that won't work. I don't understand what is wrong, because when I do for example:

    [[getImageList? &docid=`12` &tvname=`pics` &tpl=`pics-info` &where=`{"album:=":"14"}`]]


    Then it is working and it shows only the migx-record(s) with the number 14.

    If I just output
    [[+gallery.id]]
    in the tpl 'pics' than it shows the number of the galleryalbum. I also tried with outputfilters in the tpl, but that doesn't work neither:

    [[+album:is=`[[+gallery.id]]`:then=`[[+info]]`:else=``]]


    I hope you understand what I mean.

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

    • discuss.answer
      • 43864
      • 151 Posts
      Fixed it by use of the component "setPlaceholders". I will documented later in my blog.
        • 4172
        • 5,888 Posts
        where is [[+gallery.id]] coming from?
        May be it has todo with parsing-order and the getImageList - snippet is parsed before the placeholder gallery.id was set?
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 43864
          • 151 Posts
          [[+gallery.id]]
          is the id of the gallery album to use outside the gallery-album itself. You can also use f.e.
          [[+gallery.description]] and [[+gallery.name]]
          . The strange thing is that when calling
          [[+gallery.id]]
          on the page the id-number is displayed, but when using it inside the getimagelist it is not working. Storing the id into another placeholder first and then use it inside the getimagelist get the job done.