I am trying to render the name of an uploaded file without displaying the full url path i.e. replace '/portal/documents/Doc1.docx' with 'Doc1'. I am using the razor template files that come with the install package and my razor file field is called 'q.Link'. From screenshot, I want to display file name only from 'File:673'.
Also, is there a way to auto display the selected font awesome icon from the 'FileType' option above? Is it possible to display a certain icon if a certain file is uploaded i.e. .docx uploaded then 'fa-file-word-o' displays to screen just left of file name 'Doc1' (currently I am getting user to select an icon from a dropdown list but looking to skip this hopefully unnecessary step)?