Contents
elgg.ui.river
JavaScript library: Remove calls toelgg_load_js('elgg.ui.river')
from plugin code. Updatecore/river/filter
andforms/comment/save
, if overwritten, to require component AMD moduleselgg.ui.popupOpen()
andelgg.ui.popupClose()
methods inelgg.ui
JS library: Useelgg/popup
module instead.lightbox.js
library: Do not useelgg_load_js('lightbox.js');
unless your code references deprecatedelgg.ui.lightbox
namespace. Useelgg/lightbox
AMD module instead.elgg.embed
library andelgg.embed
object: Do not useelgg_load_js('elgg.embed')
. Useelgg/embed
AMD module instead- Accessing
icons_sizes
config value directly: Useelgg_get_icon_sizes()
can_write_to_container()
: UseElggEntity::canWriteToContainer()
elgg/ui.river.js
is deprecated: Do not rely on simplecache URLs to work.groups/js
is deprecated: Usegroups/navigation
AMD module as a menu item dependency for "feature" and "unfeature" menu items instead.lightbox/settings.js
is deprecated: UsegetOptions, ui.lightbox
JS plugin hook ordata-colorbox-opts
attribute.elgg/ckeditor/insert.js
is deprecated: You no longer need to include it, hook registration takes place inelgg/ckeditor
moduleembed/embed.js
is deprecated: Useelgg/embed
AMD module.
New :doc:`elgg/popup module </guides/javascript>` can be used to build out more complex trigger-popup interactions, including binding custom anchor types and opening/closing popups programmatically.
New :doc:`elgg/lightbox module </guides/javascript>` can be used to open and close the lightbox programmatically.
Even though rarely necessary, elgg/embed
AMD module can be used to access the embed methods programmatically. The module bootstraps itself when necessary and is unlikely to require further decoration.
ElggEntity
now implements\Elgg\EntityIcon
interfaceelgg_get_icon_sizes()
- return entity type/subtype specific icon sizesElggEntity::saveIconFromUploadedFile()
- creates icons from an uploaded fileElggEntity::saveIconFromLocalFile()
- creates icons from a local fileElggEntity::saveIconFromElggFile()
- creates icons from an instance ofElggFile
ElggEntity::getIcon()
- returns an instanceofElggIcon
that points to entity icon location on filestore (this may be just a placeholder, useElggEntity::hasIcon()
to validate if file has been written)ElggEntity::deleteIcon()
- deletes entity iconsElggEntity::getIconLastChange()
- return modified time of the icon fileElggEntity::hasIcon()
- checks if an icon with given size has been createdelgg_get_embed_url()
- can be used to return an embed URL for an entity's icon (served via /serve-icon handler)
User avatars are now served via serve-file
handler. Plugins should start using elgg_get_inline_url()
and note that:
/avatar/view
page handler and resource view have been deprecated/mod/profile/icondirect.php
file has been deprecatedprofile_set_icon_url()
is no longer registered as a callback for"entity:icon:url","user"
plugin hook
Group avatars are now served via serve-file
handler. Plugins should start using elgg_get_inline_url()
and note that:
groupicon
page handler (groups_icon_handler()
) has been deprecated/mod/groups/icon.php
file has been deprecated
File entity thumbs and downloads are now served via serve-file
handler. Plugins should start using elgg_get_inline_url()
and elgg_get_download_url()
and note that:
file/download
page handler and resource view have been deprecatedmod/file/thumbnail.php
file has been deprecated- Several views have been updated to use new download URLs, including:
mod/file/views/default/file/specialcontent/audio/default.php
mod/file/views/default/file/specialcontent/image/default.php
mod/file/views/default/resources/file/view.php
mod/file/views/rss/file/enclosure.php
Just a warning that the private entity cache functions (e.g. _elgg_retrieve_cached_entity
) have been removed. Some plugins may have been using them. Plugins should not use private APIs as they will more often be removed without notice.
:doc:`elgg/ckeditor module </guides/javascript>` can now be used to add WYSIWYG to a textarea programmatically with elgg/ckeditor#bind
.