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

    I have written a custom snippet that takes in 2 params. For some reason they are never set in the snippet? My call is as follows:

    [!jsummary? &fullsummarylink =`21` &currency =`£` !]

    In my snippet I then check for the params using the following:

    $currency = (isset($currency))? $currency : ’&euro’;
    $fullsummarylink = (isset($fullsummarylink))? $fullsummarylink : 1;

    $currency + $fullsummarylink never get set?
    Any ideas...

    J
      • 16610
      • 634 Posts
      Replace & with & in your snippet call. Rich text editor is probably messing your snippet calls. It’s often useful to create a plain text template variable for snippet calls and put it somewhere below your [*content*] tag in your template.
        Mikko Lammi, Owner at Maagit
        • 15083
        • 697 Posts
        Hi there,

        Did what you said, it worked!
        Not sure if it was the & or the space....but I far sloppier snippet calls that have been working fine wink

        Thank you for your help...

        J