So I’m noticing that you’re not generating the correct address when browsing through the snippet.
Use this API
$modx->makeUrl(doc_id, ’’, query_string);
It will generate the index.php?id=blabla or alias.htm and etc by itself, depending on how you setup your MODx installation. It’s a good way to make the address conistent accross the pages/albums.
I’m sorry, just tried it my self and I get the error too, I have made some bug in there after I tested it, it was working before, I swear!
Quote from: doze at Apr 07, 2006, 12:53 PMI had this same error after installing MaxiGallery. My database user has ALL PRIVILEGES, so that cannot be the reason for the error. I created the table manually, and it works fine now, but I thought you should be aware that database user priviliges is not the cause of the error (at least not the only cause).
Quote from: Adam16 at Apr 07, 2006, 11:21 AMYou have to create the database table your self with phpmyadmin or something, if the database user you have in modx is not allowed to create tables.
MODx encountered the following error while attempting to parse the requested resource: modx.modx_maxigallery’ doesn’t exist
Good work! I’m looking forward to playing with the config options to see what it can do.
I’m sorry, just tried it my self and I get the error too, I have made some bug in there after I tested it, it was working before, I swear!
So sorry for all the troubles, you have to create the table your self now.. It will be fixed in the next release. Thanks for the patience/input!
Yes, I have thought of that latest additions feature my self also, and I will definently do it in some point. Also pulling out a random image of selected galleries is a great idea. These will go straight to the todo list.
I can already think of one feature that would be awesome either as an option with this snippet or as a separate snippet--a "latest additions" feature where you could define the galleries you wanted it to pull from and how many images to show. Same thing could be done with "random images."
I have thinked to do a feature, that where you could set galleries what you want to be listed and it would make links to those galleries and display a random image of each gallery beside the link. Also I’d like to do an option to this feature where you could set multiple parent id’s and the childgalleries of each parent would be included to the list.Great ideas!
I am playing right now with the different embedtype options, and I’m having trouble. Does this snippet depend on any of the JavaScript files that are linked in the default MODx template?The snippet includes all necessary scripts and css files to the HEAD section of your template automatically, when you select display types that needs them. It uses regClientCSS and regClientStartupScript modx api fuctions. There is an bugs in these functions though and they don’t work right in the latest modx release (0.9.1), you have to patch your document.parser.class to fix it. Lookfor instructions from my first post in this thread. If you don’t want to patch the document parser and want to just wait for the next release of modx, you can copy-paste the content of the file I attatched to this post to the head of your template manually.
I have patched document.parser.class.inc.php. I changed to an uncached call, and that fixed most of the problems. I have still having a problem with the "popup" gallery type. Once the popup window opens, two things happen:
If you have patched the document.parser.class, but are still having problems, I’m guessing that you call the snippet in an uncached page with uncached snippet call, like [!MaxiGallery!] ? in this case, you have to change the call to be a cached call [[MaxiGallery]].
This discussion is closed to further replies. Keep calm and carry on.