Referring to non-existing albums in gallery component results with the following warning; Error:
WARNING: Invalid argument for foreach () /home/user/domain.com/core/cache/includes/elements/modsnippet/17.include.cache.php 106 Fatal error: string offset can not be used as an array on line 165 at / ohome / user /domain.com/core/cache/includes/elements/modsnippet/17.include.cache.php And here's how the reference album is:
[[Gallery? & Amp; Album = '[[* alias]]' & amp; Limit = `20` and thumbbyte =` 90` and thumbshit = `90`]] album name match page surname. If the album is present then everything works fine - if no mail is found, then I would like to display the blank album (no content).
Any thoughts? I am using MODX Revolution 2.2.4-PL (Traditional).
Thanks, Luke
Try this:
[[* * alias: notempty = `[[Gallery !? & Amp; Album = `[[* nickname]] '' & amp; Range = `20` and thumbbyte =` 90` and thumbshit = `90`]]`]] Oh, wait! You are linking [[* * * alias]] to your albums in the gallery. You should use your TV instead of [[* * album]] instead.
Comments
Post a Comment