We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40169
    • 16 Posts
    I have a chunka named the "gallery" and inclids:
    [[Cliche? &id=`[[+number]]` &view=`album` &columns=`7` &thumbWidth=`85` &thumbHeight=`85` &browse=`1` &itemTpl=`GalleryTemp`]]


    On the page with gallery for different &id=` ` write the following code:
    [[$gallery &number=`1`]]


    1 is the id of the gallery

    Is this correct for chunk parameters? [ed. note: aximotorr last edited this post 14 years, 2 months ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      That is correct, though if you use this multiple times on a page, or dynamically based on request parameters, don't forget to refer to the number property's placeholder using the non-cacheable token, e.g.
      [[Cliche? &id=`[[!+number]]` &view=`album` &columns=`7` &thumbWidth=`85` &thumbHeight=`85` &browse=`1` &itemTpl=`GalleryTemp`]]

        • 40169
        • 16 Posts
        Thanks @opengeek

        I had an error on the page because I forgot to write ? in chunk name.

        correctly:
        [[$gallery? &number=`1`]]
        [ed. note: aximotorr last edited this post 14 years, 2 months ago.]