Example - WebDAV browse mode editing

The following example demonstrates how website file management using WebDAV Browse mode actually works. The sample Intranet Portal website is used for the purpose of the example.

Before trying this example on your machine, please make sure that your system meets all requirements, that you have WebDAV settings adjusted properly and that you have mapped a WebDAV network drive.

Editing a CMS.File page type file

  1. Open the Pages application and expand the Company/Internal Policy node in the content tree.

  2. Select the Dress Code page.

  3. Switch to the Form tab.

    • As Dress Code is a CMS.File page, you can see that it has a Dress-Code.docx file uploaded in its File field.

A CMS.File page

Let’s take a look at the page on our network drive.

  1. Open Windows Explorer or any other file manager that you prefer.

  2. Open the WebDAV network drive and browse to content\<your culture>\Company\Internal-Policy.

    • The Dress-Code page is represented twice in the folder —  first as the Dress-Code folder and second as the Dress-Code.docx file. The folder represents the page in the content tree and would contain unsorted attachments if the page had any. The file represents the Dress-Code.docx file uploaded in the page’s File field.
  3. Open the Dress-Code.docx file to see how it can be edited.

    • The Dress-Code.docx file gets opened in a client application (typically in Microsoft Office Word).
  4. Edit the opened file and save your changes using the Save button.

  5. Now open the file from Kentico.

You should see that the opened file contains the modifications that you made to it.

Updating a file in a File field (attachment)

Next, we will try out how the file uploaded in File fields can be replaced with other files.

  1. In the Pages application choose the News/Record Sales in Q3 page in the content tree.

  2. Switch to the Form tab.

    • You can see a file uploaded in the Teaser File field. 

      File attached to a page

    • This file is displayed in the summary of the News item on the live site.

  3. Open the WebDAV network drive and navigate to attachments\en-US\News\Record-Sales-in-Q3\[NewsTeaser]

    • You should see that the original Dollar.png file in the folder.
  4. Try copying another image file into the folder.

    • If you refresh the content of the folder (press F5) after a few seconds, you should see that the original file disappeared. This means that the original file in the File field has been replaced with the newly uploaded one.

The newly uploaded file should now also be visible in the UI.