So, I'm keeping the &display=`pictureview` and trying to change the link to index [+maxigallery.index_url+] in the template with a snippet.
I found this code in maxigallery.php:
//build back to index link
if($_REQUEST['from_id']){
$back_to_index = $modx->makeUrl($_REQUEST['from_id'], '', 'page='.$page);
}else if($mg->mgconfig['is_target']==true && $_REQUEST['gal_id']){
$back_to_index = $modx->makeUrl($_REQUEST['gal_id'], '', 'page='.$page);
}else{
$back_to_index = $modx->makeUrl($modx->documentIdentifier, '', 'page='.$page);
} and trying to use the makeUrl functions. Unlikylly if I use
$back_to_index = $modx->makeUrl($_REQUEST['from_id'], '', 'page='.$page);
or
$back_to_index = $modx->makeUrl($_REQUEST['gal_id'], '', 'page='.$page);
I get the parser error:
« `` is not numeric and may not be passed to makeUrl() »
Any Help? Thank you