We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41055
    • 24 Posts
    Hello, I am trying to integrate Gallery on my site and I cannot figure out why the following wouldn't work.

    The story thus far:

    I created a gallery, then a tv (tv.gallery) and attached it to a template. So far so good. When I call my gallery on a single page, it works fine:

    [[!Gallery? &album=`[[*tv.gallery]]` &plugin=`slimbox`  &slimboxLoadJQuery=`1` &loop=`1` &thumbWidth=`170` &thumbHeight=`170`]]


    Then I tried to add my gallery to my search result chunk for Advsearch, which is pulled on the homepage using the following:

    [[!Gallery? &album=`[[+tv.gallery]]` &plugin=`slimbox`  &slimboxLoadJQuery=`1` &loop=`1` &thumbWidth=`170` &thumbHeight=`170`]]


    That doesn't work. I get the following error: Fatal error: Cannot use string offset as an array. However, if I call the gallery directly with &album=`gallery name` it works fine. Which makes me think that I am missing something, obviously. Do I have a syntax error somewhere? A conflict?

    Any help appreciated!


    [ed. note: helene last edited this post 14 years, 1 month ago.]