Info: This plug-in is part of a set of sample plug-ins that is shipped with Elvis Server. For more information, see Elvis 6 sample plug-ins.
The print contact sheet takes a selection of images from the Pro client and opens them in a printable view in your default browser. There are several views available, from one image with a lot of metadata to twelve images on a sheet with only the filename, see the screenshots below.
Note: This sample plug-in is available on Github and is supported for production use
Configuration options
There are variables available to change the metadata displayed in the various views, to make the sample display options easily configurable with some HTML and JavaScript knowledge. Modify the following code in index.html:
/**
* Metadata fields to display
*/
var metadataSetsToDisplay = {
onePerPage: ["filename", "description", "tags", "rating", "title", "subject", "assetCreated", "byline", "creator", "copyright"],
twoPerPage: ["filename", "rating", "title", "assetCreated"],
sixPerPage: ["filename", "rating"],
twelvePerPage: ["filename"]
};
To change the default view from 'two per page', adjust the following
/**
* Default hits on page
* Possible values: 1, 2, 6 or 12
*/
var defaultHitsOnPage = 2;
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
3 comments
Is there any way of increasing the number of images? Now it is limited to 50, and for a lot of customers that is not enough.
regards, Tony Meijer
Graphit
Hi Tony,
This question has been answered already on our Feedback Forum, see:
https://helpcenter.woodwing.com/hc/en-us/community/posts/205239633-50-Image-Limit-in-Contact-Sheet
Please go to /resources/printlayout.js inside print_contact_sheet plugin:
change:
elvisApi.search({
q: query,
sort: "filename"
// TODO add metadataToReturn depending on metadata displayed for current nr of hits per page
//metadataToReturn:
}
to:
elvisApi.search({
q: query,
sort: "filename",
num: 100
// TODO add metadataToReturn depending on metadata displayed for current nr of hits per page
//metadataToReturn:
}
num: 100 can be any number, the bigger the more assets, but plugin may get slow in loading if you put too much assets in it.
Hope this info has answered your question.
Kind regards,
Ronald Rol
Woodwing Support
Thanks for your reply Ronald, did not see the forum answer.
regards, Tony
Please sign in to leave a comment.