🌍
English
This shows you the differences between two versions of the page.
dev:changes_in_2.4 [2012/04/27 13:52] flop25 |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Technical changes in Piwigo 2.4 ====== | ||
- | This page lists the technical changes that may be useful for plugin and theme developpers to make their extension compatible with Piwigo 2.4. | ||
- | |||
- | ===== replace $conf['local_data_dir'] with $conf['data_location'] ===== | ||
- | |||
- | See http://piwigo.org/forum/viewtopic.php?id=18582 | ||
- | |||
- | ===== Derivatives (multiple size) ===== | ||
- | ==== Database ==== | ||
- | ==== Core functions ==== | ||
- | * get_thumbnail_location - removed | ||
- | * get_thumbnail_path - removed | ||
- | * get_thumbnail_url - deprecated (it will not be there in 2.5) - use Derivative_Image::thumb_url | ||
- | * get_high_location, get_high_path, get_high_url - removed | ||
- | * get_image_location - removed | ||
- | * get_image_path - removed - use ( new SrcImage($infos) )->get_path() | ||
- | * get_image_url - removed - use ( new SrcImage($infos) )->get_url() | ||
- | |||
- | ==== Triggers ==== | ||
- | === Removed === | ||
- | * get_thumbnail_location, get_thumbnail_url | ||
- | * get_element_location | ||
- | |||
- | === Added === | ||
- | get_mimetype_location (replaces get_thumbnail_location) | ||
- | |||
- | ==== How To ==== | ||
- | how to update your .tpl files : | ||
- | * to define a size using an default size : {define_derivative name='//NAME//' type='//TYPE//'} where NAME is the name of the derivative created (use it like $pwg->derivative($//NAME//, $//src-image//), and //TYPE// can have the values : square, thumb, 2small, xsmall, small, medium, large, xlarge, xxlarge. The sizes corresponding to these types are available in Configuration -> Options -> Photo sizes | ||
- | * to define a new size : {define_derivative name='//NAME//' width='//WIDTH//' height='//HEIGHT//' crop=//true/false//} where NAME is the name of the derivative created (use it like $pwg->derivative($//NAME//, $//src-image//), //WIDTH// and //HEIGHT// are required and must be numeric values, and the attribute crop is optional ( | ||
- | |||
- | ===== Album administration screen (cat_modify) ===== | ||
- | |||
- | There is no longer admin.php?page=cat_modify&cat_id=1234, use instead admin.php?page=album-1234 | ||
- | |||
- | For admin.php?page=cat_perm&cat=1234, use instead admin.php?page=album-1234-permissions | ||
- | |||
- | ===== CSS classes renamed on comment_list.tpl ===== | ||
- | //.thumbnailCategories// is renamed into //.commentsList// | ||
- | |||
- | //.thumbnailCategory// is renamed into //.commentElement// |