Hi Jason,
Here my project. I just finish the interegration of Snipegallery in Modx (
http://www.snipegallery.com/)
I created a snippet that display the gallery listing, display a gallery content and a gallery image with all the navigation stuff (next, prev.., return to gallery). I also try to extend Snipegallery with stuff like random image. So here my problem... When a call the snippet from a gallery document a use $modx->documentObject[’id’] to get the id. This way the same document is use to display different level of the gallery base on different action. But, the random image is use on a other document, so $modx->documentObject[’id’] give me the current document. If I went to link this random image to be display full size in the gallery document, the snippet those not know id document of the gallery.
What I was thinking to do is to add a parameter where you add the name of the document where stuff will be displayed.
$gallery_document_name = "Gallery";
I know a could also hard code the gallery document id (It’s the way it’s works now) but was thinking the document name could be cleaner. But writing down my problem here make thinking it’s not that much diffent then hard coding the document id. ;-)
To finish, I’m trying to build a snippet that will be use in a master document but also could be use on different document but all the link genereted by the snippet go to the master document.
Sorry for my english, I learne wathing TV....
Best regards,
zipper