"Create gallery" and "Assign galleries to page"

  1. ben_allison


    The ability to create a gallery with any items in the Media Library, and assign one, or several, galleries to a post or page of your choosing.

    And a top-level "Galleries" page to manage/maintain them

    Having an item attached to a "post" by default is so limiting. I feel like items attached to a post should almost be a separate entity (with a possible "attachments sidebar" widget to show you what documents are attached to THAT post, determine order, etc).

    But that those attachements simply make up the "gallery," which itself has no real flexibility? Hmm. User createable, manipulable, and assignable galleries... this is probably the one glaring hole in WP, and comes up again and again for me when designing portfolio-based sites.

    Posted: 8 years ago #
  2. Mark

    I agree, but I'm not sure what the right solution is - galleries wholly separate from entities like posts or pages, as your propose, or (another real glaring hole if you ask me) the ability to attach images to multiple posts/pages?

    Posted: 8 years ago #
  3. ben_allison


    I just don't think attaching an item to a post makes sense, as far as the general rule goes. If attachments relate to a specific post (support information, downloadable files that pertain to the post, etc) fine; in that case an attachments makes sense. But that an item attaches to a post by default... I don't think that's actually how a user intuitively expects a system to work.

    I feel that uploading to a file repository, and making assemblages of files (galleries) that can then be assigned to a post, is behavior that the average user would expect.

    Posted: 8 years ago #
  4. Mark

    I agree with you. On balance however, I think this is a case of something that can be quite easily done by a plugin (you know of course that there are loads of gallery plugins already). So I'm not sure why this should be added to the core.

    (Also note that the [gallery] shortcode has an "include" parameter. A simple plugin could easily build on this.)

    Posted: 8 years ago #
  5. Aesqe


    this is probably not exactly what you are looking for, but here goes my shameless plug:

    you can try my File Gallery plugin.

    here's the link to the help file in which most of the features are described: http://skyphe.org/wp-content/plugins/file-gallery/help/index.html

    and if you have any suggestions, please leave a comment on the official plugin page: http://skyphe.org/code/wordpress/file-gallery/

    thanks :)

    Posted: 8 years ago #
  6. ben_allison


    Hi Aesqe! Nice work. I've tried the plugin before. I think the main issue I had was that it was a bit complicated to navigate/make sense of.

    What I'm envisioning, is much simpler. A top level menu item called Galleries. Inside is a tabular view, just like Posts and Pages, with a list of all Galleries. The process of creating a gallery would be three simple steps:

    1) Click "Add new gallery."
    2) The interface is simply two panels; on the left is a list of all items in the Media Library, on the right, a blank panel into which you drag items to build the gallery (order can be changed with simple drag and drop, items removed by clicking a delete button beside the item name).
    3) Hit save.

    Then, within a page or post, there would be a meta-box called "Galleries," with a drop-down allowing you to select the gallery (or galleries) you want to include. Of course, all titles, descriptions, and captions would be taken from the Items themselves.

    Having to worry about attachments, copying from one post to another... it's confusing for the average, non-programmer minded user.

    Take something like iPhoto, or iTunes; you simply create an Album or Playlist, drag and drop whatever photos or songs you want to include; that's it. That's the level of simplicity a feature like this needs to have (and which WordPress, on the whole, does have).

    As it stands WP's media management, in general, is a bit of a mess; four tiny buttons, which actually all do the same thing. Text fields on top of text fields. Buttons on top of buttons. It's not very intuitive, and I think having a simple Gallery module, as part of the core, will help. Again, it seems like a a feature that the average person would expect to see.

    Posted: 8 years ago #
  7. I think this should and could (theoretically) be done with taxonomies, which seems an elegant solution. I tried doing this with an alpha of WP3 and soon realised it needs some core changes to the media library admin so that taxonomies can work for Attachments the same as they do for Pages & Posts.

    If I ever have the time (ha) I'll finish my core changes and submit them for possible inclusion.

    There are good image gallery plugins out there, but the popular ones are also a bit unwieldy.

    Posted: 8 years ago #
  8. Aesqe

    @Ben: your request would actually not be that complicated to pull off, I believe. A custom post type and a categorizing taxonomy should do the trick.

    Admin interface would probably require a bit of time, but what you're asking for is nothing impossible.

    Posted: 8 years ago #
  9. rickcurran


    I whole-heartedly agree that being able to apply categories directly to attachments would be an awesome thing! This would make it quite easy to create galleries simply by using a Category page which pulls in images automatically based on their category.

    I'm trying to do this just now and it's been very painful trying to make it happen due to the requirement of attaching images to a post just to be able to apply a category, then trying to access those attachments has been painful too.

    Here's hoping the ability to categorise image / document uploads can be added to core :)

    Posted: 8 years ago #
  10. Chip Bennett


    In implementation, I think that Galleries would be a separate Post Type, with some taxonomy to tie Post Galleries to specific Posts. I should have a look through Trac, to see what tickets have been opened in this regard.

    While I don't know what back-end changes would be required to tie such a Post-Type into the Media Manager, I think this could be accomplished without too much disruption of the current UI.

    1) The admin menu already has a top-level entry for the Media Library. The "Add New Gallery" sub-menu item would fit here. The "Library" sub-menu item could be replaced by a "Galleries" sub-menu item, in which Galleries, instead of individual images, are listed.

    If need be, other media types could be listed under a separate sub-menu item, such as "Other Media". Or, "Galleries" could be used to group other media types: such as grouping audio files as "Albums". But I think that is probably Plugin territory.

    2) There is no reason that Galleries can't be associated with Posts, even while they shouldn't have to be. The key is having a unique identifier for Galleries, and a way for Posts to know that a Gallery is associated with it.

    3) The Post-editor media manager "Media Library" tab would need to be reconfigured to show Galleries, while still accommodating images not in Galleries. (I think this change should happen regardless, as it would be much easier to find images by "Post" Gallery - i.e. grouped by the Post to which they are attached - than the current implementation.)

    Perhaps having "All Galleries" and "All Images" tabs would be the best approach?

    4) The Post-editor media manager "Gallery" tab should be renamed "Post Gallery" or something similar, to distinguish it from the Galleries under the "Media Library" tab.

    Posted: 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    24 Votes
  • Status

    Duplicate of another idea