Thanks Chuck! Your reasoning for using MODx pages makes sense, though I would be concerned about the number of pages in the manager - an external table keeps down the number so the ’soft limit’ should not be reached so easily.
- Each photo is a modx page. Why? My clients want additional fields linked with their image, and I can use TV’s
- Use your custom TV’s or a module with the modx api to create/edit the modx resources via the API
(a MODx document becomes the ’Gallery’, and a datagrid allows access to the images)
What do you think about this crazy idea?
Ditto extenders - I have heard rumours that these (or something) can allow Ditto to query an external database. Do you know anything about this?
Thanks Chuck! Your reasoning for using MODx pages makes sense, though I would be concerned about the number of pages in the manager - an external table keeps down the number so the ’soft limit’ should not be reached so easily.
Apart from reaching the document limit (which I’ve heard bandied around many times - can anyone explain where the limit’s reached and what causes it?) it sounds a good approach. I’d take a different approach to caching, caching the static HTML rather than the data, but otherwise I agree in principle.
Questions
- MODx is known to get slow with too many documents - is this even if they’re hidden in the document tree? This is one reason I’ve always used an external table
- Ditto extenders - I have heard rumours that these (or something) can allow Ditto to query an external database. Do you know anything about this?
2. What I plan to do
- I create a folder called Gallery (It’s hidden from the client though)
- Each photo is a modx page. Why? My clients want additional fields linked with their image, and I can use TV’s
Yes, eCommerce is definitely coming; we may be developing an image gallery using this system next month for a client, but they haven’t decided if they want it yet. Have you any thoughts on the gallery UI? Previously when we created a new document type for a gallery we put all images on the page, but I’m not convinced this is the best approach with custom template variables as the page could get very long. Doing it in a lightbox would be an alternative, but from a user perspective is one more ’hoop’ to jump through.

but would it be possible to just install the image gallery TV, or make this a separate plugin? Will you be releasing a fix for those who can’t get it working?
The UI interface you linked to on the previous page looked great, I couldn’t see any big problems with it; one thing I would try and add it some AJAX dragging and dropping for reordering the images; which would make the whole process much easier for the client. Other than that it looks greatDrag and drop was coming, but for the one I showed you the budget didn’t stretch far enough

I’ve still not been able to get your Custom TVs code to workI’ll be releasing a fix as soon as I find time - paying customers have to come first!but would it be possible to just install the image gallery TV, or make this a separate plugin? Will you be releasing a fix for those who can’t get it working?
I believe that this is the wrong place to solve performance problems. For most sites where people aren’t logging in, the optimisation would be better moved a stage forward, to output caching of the generated HTML. siteCache.idx.php may be large, but with a PHP bytecache the amount of code being loaded is only on a par with other frameworks.
The other main problem we could run into is the aliasListing array in the siteCache.idx.php could become really large. I dont know what we could do to fix this yet, but if we solve this, I think we’re in business to use MODx CRUD magic.