This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Direct URL Links and Shortened URLs

Former Member
Former Member
1) Is there a way to create a direct link to a document?  I found that changing "show" to "open" in this URL generated from "Create or Get Shortcut" context menu works, but is there an option to do this without manually editing the URL every time?

From [m-files://show/F21C8443-EEB3-442F-AA15-1000000000/0-20513?object=00000000]
to [m-files://open/F21C8443-EEB3-442F-AA15-1000000000/0-20513?object=00000000]

2) I assume that there is not a shortened version of this URL built into M-Files and that a UI Extensibility would be required to add a context-menu item that shortened the URL.  Am I correct in that assumption?

Many thanx!
Parents
  • I don't have a list, but I believe the verbs derive from the MFilesURLType enum within the documentation:


    Member Value Description
    MFilesURLTypeEdit 3 Specifies an URL for performing the open-for-edit action for the target file.
    MFilesURLTypeOpen 1 Specifies an URL for performing the default open action for the target file.
    MFilesURLTypeShow 0 Specifies an URL for showing the object version. The URL does not open the target file.
    MFilesURLTypeShowMetadata 6 Specifies an URL for showing the metadata card for the target object.
    MFilesURLTypeView 2 Specifies an URL for performing the read-only open action for the target file.


    I've used view and show before, so I could take a wild punt at what others might work ;)

    That sounds like a crappy legacy limitation. 100 characters may be okay if you lose the version guid. But yes, I can see why you want to do that.

    Craig.
Reply
  • I don't have a list, but I believe the verbs derive from the MFilesURLType enum within the documentation:


    Member Value Description
    MFilesURLTypeEdit 3 Specifies an URL for performing the open-for-edit action for the target file.
    MFilesURLTypeOpen 1 Specifies an URL for performing the default open action for the target file.
    MFilesURLTypeShow 0 Specifies an URL for showing the object version. The URL does not open the target file.
    MFilesURLTypeShowMetadata 6 Specifies an URL for showing the metadata card for the target object.
    MFilesURLTypeView 2 Specifies an URL for performing the read-only open action for the target file.


    I've used view and show before, so I could take a wild punt at what others might work ;)

    That sounds like a crappy legacy limitation. 100 characters may be okay if you lose the version guid. But yes, I can see why you want to do that.

    Craig.
Children
No Data