Jump to content

Developer Documentation

Implementing share links in Content Items

Share links allow users to share content items to various social networks, as configured by the administrator.

 

How to implement share links

First, your content item model needs to implement the share links interface, like so:

implements \IPS\Content\Shareable

Finally, include the share links template inside your content item view:

{template="sharelinks" app="core" group="global" params="$item"}

 

Additional model methods available

array sharelinks()

Returns an array of share service URLs for the content item.


  Report Document


×
×
  • Create New...