chnm / anthologize

Anthologize is a free, open-source, WordPress-based platform for publishing. Grab posts from your WordPress blog, pull in feeds from external sites, or create new content directly in Anthologize. Then outline, order, and edit your work, crafting it into a coherent volume for export in several formats, including PDF, EPUB, and TEI.
http://anthologize.org
GNU General Public License v3.0
174 stars 29 forks source link

Wordpress Gallery support? #50

Closed chrbayer84 closed 12 years ago

chrbayer84 commented 12 years ago

Does Anthologize has any support for processing Wordpress gallery pics you have in an article? I would like to include all my gallery pics in the output, but for now it only contains single pictures I added.

boonebgorges commented 12 years ago

It does not have gallery support at the moment, though it's a very cool idea! I'll play around with it at some point in the future.

patrickmj commented 12 years ago

In https://github.com/chnm/anthologize/commit/09e907aa364d10c665942393a6689c697607bdca TeiDom sets the global $post variable to the current anthologize library item being processed. That was mostly a hack to make it work with the Journal of Digital Humanities and the footnotes plugin it uses.

That solved the problem with the shortcode from that plugin, and suggests directions to make more shortcodes work.

In the case of the gallery shortcode, I think that the only additional thing that would need to happen is to make it so when Anthologize duplicates the original post into an anthologize item, it also duplicates the media associations, so that any media associated with original post is also associated with the anthologize item.

Easy-peezy lemon-squeezy!

(of course, the formatting between screen, pdf, and epub might not be so easy, but I'll call that a downstream problem!)