10-24-2016 05:37 AM
Hi all,
I am trying to figure out a way for a normal consumer user to view content object metadata without using "document-details".
By default, from a Document Library the user can click on a document link and be redirected to "document-details". I want the user to be navigated to only a metadata view.
For a user with write permissions, I'm redirecting him to "edit-metadata" form, but I am failing to find a good solution for users without write permissions.
Basically I am looking for a "view-metadata" form to where I can redirect my consumer users.
Currently I have this: (overriding "DL_generateFileFolderLinkMarkup")
if(record.node.type == "mymodel:custompackage")
{
if(record.node.permissions.user.Write == true)
{
html = actionUrls.editMetadataUrl;
}
else
{
//what to do here?
}
}
else
{
html = actionUrls.documentDetailsUrl;
}
10-24-2016 10:52 AM
You would have to create such a page yourself. Alfresco considers the document details page as a simple view page, and if that is not acceptable in your case you must create the alternative. You could do this by duplicating the document details page and stripping out all the components you do not want to see there as well as select a very specific form ID for custom metadata structuring.
10-24-2016 10:52 AM
You would have to create such a page yourself. Alfresco considers the document details page as a simple view page, and if that is not acceptable in your case you must create the alternative. You could do this by duplicating the document details page and stripping out all the components you do not want to see there as well as select a very specific form ID for custom metadata structuring.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.