[wp-trac] Re: [WordPress Trac] #7607: Image gallery to have multiple
galleries inside one post
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 20 04:11:45 GMT 2008
#7607: Image gallery to have multiple galleries inside one post
----------------------------------------------+-----------------------------
Reporter: ShaneF | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.7
Severity: normal | Resolution:
Keywords: gallery needs-patch dev-feedback |
----------------------------------------------+-----------------------------
Changes (by DD32):
* keywords: gallery has-patch dev-feedback => gallery needs-patch dev-
feedback
Comment:
I've been thinking about this, and #7764, and i've come to the conclusion
that another table is really pointless, It feels like a step back to the
post2cat and link2cat tables which have been dumped in favour of the new
Taxonomy system.
My suggestion:
* Leave the attachments as they are
* Define a new Taxonomy ('gallery') - like post_tags
* Name a gallery as a new Term (ie. 'Flood Photos')
* Add "Show in Galleries: [Flood Photos], [2008 Photos]" like interface
to attachments, "Attachment posts" get linked via the taxonomy system
* Add a "Insert Gallery [Flood Photos], [2006 Photos], etc" to the media
page under gallery or somesuch
* Upgrade script would pick up the current galleries and add the new
taxonomy & terms as "My-Post-Name Gallery", link 'em all up, etc.
* There'd need to be an adition to [gallery] to select the first
gallery term attached to a post for backwards compat. Extra galleries
could be used as such [gallery id=34] or [gallery name="post 24's
gallery"]
* Using the taxonomy system has the advantage of the fact its allready
used to group posts together, It was well thought out and doesnt appear to
have too many downsides, Its a table that allready exists, The upgrade
proceedure shouldnt be too difficult, it satisfies not needing a extra
table or columns to be added to a table, and most current attachment
methods would still work.
* It does have some downsides, Current themes and scripts would not be
able to take advantage of multiple galleries, However, Backwards
compatibility would be still held possible by marking the post_parent as
the post its uploaded with (even though it'd be near useless to do now)
There was a 2.7 Ideas idea for a new 'Gallery' post type:
http://codex.wordpress.org/Version_2.7 too, This sort of fits in with that
idea rather well, while being more flexible than a gallery post type.
It would also open up the door for more advanced gallery functionality in
future versions of WordPress, While WP is a Blogging/CMS platform to start
with, Images and Galleries of things are becoming more common with todays
online content, so its something that needs to be ready for those who want
to use it. Other applications such as Gallery2 exist to fill these slots
i admit, But they're simply a gallery, not a CMS.
Of course, this is all just my opinion, but it really seems like the best
solution out of what i've thought of, and what others have mentioned.
--
Ticket URL: <http://trac.wordpress.org/ticket/7607#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list