if ($modx->getOption('checkForRequestAlbumVar',$scriptProperties,true)) { if (!empty($_REQUEST[$albumRequestVar])) $scriptProperties['album'] = $_REQUEST[$albumRequestVar]; }
if ($modx->getOption('checkForRequestAlbumVar',$scriptProperties,true)) { if($scriptProperties['album']!="") $_REQUEST[$albumRequestVar]=$scriptProperties['album']; if (!empty($_REQUEST[$albumRequestVar])) $scriptProperties['album'] = $_REQUEST[$albumRequestVar]; }
<div id="catalog"> <p>[[+name]]</p> </div> [[!Gallery? &album=`[[+id]]`]]
[[!Gallery? &toPlaceholder=`gallery`]] [[!GalleryAlbums? &toPlaceholder=`galleries`]] [[!GalleryAlbums? &rowTpl=`galSubAlbumRowTpl` &parent=`[[+gallery.id]]` &showAll=`0` &showInactive=`1` &toPlaceholder=`subgalleries`]] <div style="float: right"> <h2>Galleries</h2> <ul> [[+galleries]] </ul> </div> [[!If? &subject=`[[+subgalleries]]` &operator=`empty` &then=`[[+gallery]]` &else=`[[+subgalleries]]` ]]