pessek / hypeembed
Embed for Elgg
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:elgg-plugin
Requires
- php: >=7.1
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-09-29 05:56:39 UTC
README
Features
- Search, upload and embed files on the spot
- Search and embed all other registered object types on the spot
- Embed URL previews and rich-media players
- [admin] Embed buttons that match the site styles
- [admin] Embed "insecure" HTML embeds (forms, calendars etc)
Shortcodes
The plugin supports the following shortcodes:
ebmed
shortcode:
guid
- GUID of an entity to embed
button
shortcode:
text
- call to actiontype
- One of the following typesaction
,submit
,delete
,cancel
(these values only affect styling and do not carry any functional value)url
- URL to link totarget
- Defaultself
,blank
orlightbox
Examples:
[embed guid="555"]
[button type="action" text="Read Terms" url="/terms" target="lightbox"]
Unlisted shortcode attributes will be parsed and passed to the view after sanitization, so extending plugins can add additional options.
By default, only shortcodes passed to output/longtext
view will be expanded automatically.
Static assets
If you are using the same images across multiple posts, you may way to use static assets, as they allow you to take advantage of simplecache, thus offering better performance than file entities.
Create a folder in your dataroot /embed/
and place your image files in there, flush the caches,
and you will see your images in the Assets tab of the embed lightbox window.
Acknowledgements
- Upgrade for Elgg 2.3 has been sponsored by ApostleTree, LLC