AnsweredAssumed Answered

View metadata form for consumers

Question asked by leifhorpestad on Oct 24, 2016
Latest reply on Oct 24, 2016 by afaust

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;
  }

Outcomes