Loading...

qlistview on Name in Document Library strip file extension in Display

qlistview on Name in Document Library strip file extension in Display

  • This topic is empty.
Viewing 1 reply thread
  • Author
    Posts
    • #4295
      Anonymous
      Anonymous
      Participant

      Hi,

      We are SP2010 with WebParts 5.7 – we are rolling up several document libraries in qlistview.  We have the Name of the Files linked using this:

      </Field>

        <Field Name=”Name” LinkTo=”&lt;%FilePath%&gt;” />

      In the WebPart display the name displays as this  AddressandMapping.aspx;  is there a way to keep the link while removing the file extension (in this case .aspx)?

      Thanks for any ideas.  I may be missing something simple.

    • #5371
      Anonymous
      Anonymous
      Participant

      Hi ,

      n

      n

        Please take a look at this post. This is something that will help you to remove the file extension using some javascript code.

      n

      There is a function there called FormatNumber, you just need to adjust it to remove the chars after the last dot in the file name.

      n

      Also please consult our documentation.

      n

      If you have any issues please let me know.

      n

      n

      http://en.community.dell.com/techcenter/sharepoint-for-all/f/4782/t/19559526

      n

      n

Viewing 1 reply thread

You must be logged in to reply to this topic.