docRootFilename

Retrieves the file name of a file without the extension or directory path.

  • This function is typically used to extract the Content ID (dDocName) part of a Content Server-controlled static URL.

Type and Usage

Parameters

Takes one parameter:

  • The only parameter is a path and file name.

Output

Returns the file name as a string.

Example

Returns the value mydoc:

docRootFilename("/groups/public/documents/adacct/mydoc.pdf")