Large View: Viewer infos
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
public class ViewerInfos {
private Map<String, Object> params;
public ViewerInfos(ApexPages.StandardController stdCtrl) {
String albumId = (Id)stdCtrl.getId();
params = new Map<String, Object>{
'path' => '/pagelayout/' + albumId,
'abilities' => new Map<String, Object> {
albumId => New Map<String, Object> {
'Access' => new Map<String, Object> {
'see' => true,
'image_list' => true,
'image_upload' => true
},
'Display' => new Map<String, Object> {
'date' => 'L'
}
}
},
'viewer_infos' => true
};
}
public String getParameters() {
return JSON.serialize(params);
}
}<apex:page docType="html-5.0" cache="false"
showHeader="false"
sidebar="false"
standardStylesheets="false"
standardController="Account"
extensions="ViewerInfos"
applyHtmlTag="false"
applyBodyTag="false">
<sharinpix:sharinpix parameters="{!parameters}" ></sharinpix:sharinpix>
</apex:page>