We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22757
    • 41 Posts
    Hi!

    i have a snippet calling two other snippets, and i think that causes problems... here is the snippet code:
    if($include == 1) {
        $modx->runSnippet('Gallery', array(
            'toPlaceholder' => 'gallery',
            'plugin' => 'galleriffic'
        ));
    
        $modx->runSnippet('GalleryAlbums', array(
            'toPlaceholder' => 'galleries',
            'plugin' => 'galleriffic',
            'limit' => '100',
        ));
    }
    return '';


    Now i have the impression, that this snippet calls are cached. Maybe that could be a problem too - can i call them uncached?

    But to the problem:
    Galleryalbums is creating a list of albums but if i click on one of them no gallery appears (except when there’s a album allready set [as GET parameter] on the first page call - this is why i think that may be a caching problem). In fact it seems that the gallery snippet call returns (saves in placeholder) nothing.

    Any ideas?
      • 18959
      • 6 Posts
      As far as I know, to call a snippet uncached is [!mysnippetname!] and that may work. Other than that, I can’t answer anything else, including if calling snippets from one another messes it up. (Yes, I didn’t read the entire post)