Closed dgrumieaux closed 9 years ago
On further discussion, during the weekly meeting we thought we should:
tsg:doNotAutorender
aspect and applying it to types that should not be autorendered (ex: aw_page_set
)tsg:rendition
to be a repeating attributeNotes from yesterday's weekly meeting - there is already a tsg:doNotAutoRender aspect that is being honored in AlfrescoEmbUtil#transformNativeContentAsTSGRendition.
Given that this functionality already exists and has been tested, closing.
Currently, the Alfresco tsgModel property tsg:rendition supports only one rendition. This is assumed to be a PDF rendition by many behaviors and functions in OC. We can support renditions of other types by adding renditions to a node via the Alfresco ServiceRegistry's addRendition method. However, our AlfrescoEmbExtendedContentImpl#addRendition method simply sets the tsg:rendition property to the supplied content. Instead of doing this, we should be leveraging the ServiceRegistry's addRendition method so that we are not interfering with the autorenditioning and other PDF specific behavior inherent to the tsg:rendition expected functionality.