We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22098
    • 218 Posts
    Hello,

    we are using multiple snippets of the same name in one page. It seems that only one snippet (the first one) is executed, the next ones are ignored. How can we solve this? We use 0.9.5

    Olaf
      • 7455
      • 2,204 Posts
      It depens on the snippet you are using some snippets do work multiple time on one page but lots do not.

      Try the support pages for the snippets you used, and ask there if there is a posibility to do what you want with that snippet.

      Dimmy
        follow me on twitter: @dimmy01
        • 4041
        • 788 Posts
        Perhaps you can modify the snippets yourself using the unset() function at the end of the snippet... it should clear the variable for reuse.... I’m sure someone will correct me if I’m wrong smiley

        <?php
        $variable =isset($_GET['hello'] ? $_GET['hello'] : "hello";
        
        working code here
        $output .="$variable";
        
        unset($variable);
        
        return $output;
        ?>
          xforum
          http://frsbuilders.net (under construction) forum for evolution
          • 22098
          • 218 Posts
          we got it working, with a if statement around the snippet function declaration. cheers!

          Olaf