RML integration
-
Hi, David,
Could I persuade you to do some integration with Real Media Library? I like using it for having a hierarchical space for my images, eventually numbering in the thousands. Here is the sort of thing I would like to be able to do. Currently, I’m using RML hooks to add custom fields to each image, like the RML folder id, folder type, gallery name, gallery slug, etc. It would be nice to avoid this step if possible.
1. Find the folder(s) to which a particular image has been added.
2. Build a gallery from all the images in a folder. Justified Image Grid has nice native support for this.
3. Build links to (an) enclosing gallery for an image. For instance, I want to have, say, the three latest images that I’ve added to a gallery show up in my home page. I can already do this using mla_gallery as the data selector, passing the images on to the justified_image_grid shortcode. However, I’d also like to adjust the link so that it points back to the enclosing gallery. I think I can do that using the mla_link_href and some kind of custom field content template.Perhaps unfortunately, the rml data is in separate tables, so not already available as post metadata. Thus I rely on hooks to populate the meta data.
RML documentation is quite good:
https://matthias-web.com/wordpress/real-media-library/documentation/php-api/You can see a preliminary implementation at https://dancinglight.photos
Thanks!
- The topic ‘RML integration’ is closed to new replies.