you can not use php directly in a template or chunk in modx.
where do you set the $gallery-var?
I see, what you are trying.
you can do:
<?php
$params['album'] = $_GET['gallery'];
$params['plugin'] = 'galleriffic';
$output = $modx->runSnippet('Gallerie',$params);
return $output;
or install the getReqParam - snippet and do this:
[[!Gallery? &album=`[[!getReqParam? &name=`gallery`]]` &plugin=`galleriffic`]]
I see, what you are trying.
you can do this in your snippet:
<?php
$params['album'] = $_GET['gallery'];
$params['plugin'] = 'galleriffic';
$output = $modx->runSnippet('Gallerie',$params);
return $output;
or install the getReqParam - snippet and do this in your template/content:
[[!Gallery? &album=`[[!getReqParam? &name=`gallery`]]` &plugin=`galleriffic`]]
[ed. note: Bruno17 last edited this post 14 years, 10 months ago.]