cancel
Showing results for 
Search instead for 
Did you mean: 

Static Document Preview?

ashex
Champ in-the-making
Champ in-the-making
I have a proprietary file format that I'd like to be able to attach a static document preview to. The idea would be to upload it through a data list so you'd be added the file and an image that would be used as the preview.

Is this possible? The idea is that when a user navigates to the file in the document library, the preview would be the image. In the Data List the thumbnail preview would be shown of the image.

4 REPLIES 4

mrogers
Star Contributor
Star Contributor
What does the data list do?  Another idea would be to add a transformer for your data format.   Then share will be able to preview it like any other file.

afaust
Legendary Innovator
Legendary Innovator
Hello,

this should be possible via scripting or a policy. You should only need to set up a rn:rendition child-association from the proprietary file to the static preview document with the child name of "cm:imgpreview" / cm:name = "imgpreview".

Regards
Axel

ashex
Champ in-the-making
Champ in-the-making
Data List would be a way for users to create a catalog of files. The idea is to have a site that users can add this to arranged by industry vertical and other information. Data list would contain all the information for these demos which are the files themselves.

Ideally I'd add a transformer for these files but it requires being processed through another environment, more work then is needed at the moment (it'll eventually get there just not now).

They're using MediaWiki Semantic Forms for the above use case and while it's working, it's cumbersome and we're fairly certain we can achieve the same function through data lists/custom metadata.

ashex
Champ in-the-making
Champ in-the-making
It looks like Renditions will be the way to go. Looking at the details, I'm trying to identify how I'd store the rendition from a datalist form. If I were to store the file inside a zip alongside the image (using a predefined name) would I be able to script extracting the image and adding it as a rendition? Or would that be too intensive?