[wp-trac] Re: [WordPress Trac] #7607: Image gallery to have multiple galleries inside one post

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 17 23:25:36 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.6.1    
 Severity:  normal                          |   Resolution:           
 Keywords:  gallery has-patch dev-feedback  |  
--------------------------------------------+-------------------------------
Comment (by DD32):

 > DD32 suggested that the gallery information be moved to the postmeta
 section as a new key "_wp_gallery". The postmeta.post_id would refer to
 the post number itself. Inside the 'data' area would be a serialized data
 field storing the number of gallery groups and what images would be in
 each group referring back to either the posts table or to the
 postmeta.meta_id of the image description itself.

 Ah no, What i meant, Was to add to ''each of the attachments'' a metakey
 refering to which gallery they belong, eg, 1, 2, 3. The number of
 galleries can easily be determined in PHP, Dont be afraid of looping over
 attachment metadata, unless its in the thousands of attachments for a
 post, storing the actual number isnt going to be an issue, infact the
 object cache can be used to cache that number if need be.

 You could add a metakey to the actual post to tell it how many galleries
 there are if theres multiple galleries and it actually needs it.

 a post_group column that Otto42 suggests could be useful i guess too.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7607#comment:15>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list