Open a specific image in Full View
Show a specific image
String imageId = '1b2efab9-ee60-4236-85ac-9e37dab7a0f8'; //replace with your own image idpublic class SharinPixActionDemoCtrl {
public String parameters {get; set;}
public SharinPixActionDemoCtrl(ApexPages.StandardController controller) {
Id albumId = controller.getId();
String imageId = '1b2efab9-ee60-4236-85ac-9e37dab7a0f8'; //replace with your own image id
Map<String, Object> params = new Map<String, Object> {
'Id' => albumId,
'path' => 'pagelayout/' + albumId + '?image=' + imageId,
'abilities' => new Map<String, Object> {
albumId => new Map<String, Object> {
'Access' => new Map<String, Object> {
'see' => true,
'image_list' => true,
'image_upload' => true,
'image_delete' => true,
'image_annotate' => true
}
}
}
};
parameters = JSON.serialize(params);
}
}Activate the Annotation mode
Last updated
Was this helpful?

