cancel
Showing results for 
Search instead for 
Did you mean: 

View metadata form for consumers

leifhorpestad
Champ in-the-making
Champ in-the-making

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;

  }

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

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.

View answer in original post

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

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.