Standard template
A default template is used if there are no customer specific sharing templates in the system. The "Sharing" skin is included in the system per default and is used for the default template of the sharings. For a new sharing template you can either use no skin or create a new skin.
Example Code
A simple code:
var viewPort = new Ext.Viewport({
layout: 'border',
items: [
{region:'center', layout:'border', items: [
{region: 'north', autoHeight: true, bodyCfg: {id: 'PictureparkMailing'}},
{region: 'center', bodyCfg: { id: 'AssetBrowser', target: 'picturepark'}}
]}
]
});
window.publisher = new PP.publisher.StandardPublisher({
controller: controller
});
viewPort.doLayout();
You can take a look at the code in the templates for further examples.
Rights
All user groups which have "Use" rights on a sharing template, can select this template during the creation of a Sharings.
If more than one sharing template is defined per user group then the sort order is taken from the management of the UI elements in which the entries are sorted alphabetically.
Make message required for shares and orders
Add the following code to the tab "Code" to make the measse required for shares and orders:
controller.mailingMessageRequired = true;
Open Graph Support
Sharings contain OpenGraph (OG) Metatags, which play a role in sharing on social networks. The standard description is used as "OG Title" and the message from the sender as "OG Description". The preview image of the first asset in the sharing is used as "OG Key Visual" . The asset sort order can be changed via drag and drop in the sharing management. The usage of Open Graph within Picturepark is officially supported for Facebook, Twitter and LinkedIn. Please note: For Facebook the preview image will not be visible while sharing but will be displayed on Facebook anyway once the link has been shared.
Important: Social networks save the values of these metatags as soon as a link is first shared. Therefore any subsequent changes to the subject, title and sort order will most likely not be updated if a link is shared again. Please double check these entries before sharing.
World Port Sharing Template for Use in Picturepark
You are able to use the new World Port Sharing template for sending mails from Picturepark as well. Simply add a UI Element of the type "Share" add a Name and Browser Title and select your World Port in the "Facet Configuration" field, select the usergroups that should use this template and save. The entries in the "Skin Script" and "Code" sections of the UI Element need to remain empty and no other settings are considered. You will then be able to select the World Port Sharing Template for mails out of Picturepark. Please note the World Port sharing template is not available for links.
|