Linking pages and files

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Linking documents (pages)

 

If you need to create a permanent link to a document, you need to use a URL in the following format:

 

http://www.example.com/getdoc/016fad52-0d69-46d5-80dc-daec9173c0c7/Products.aspx

 

It's an equivalent of

 

http://www.example.com/company/products.aspx

 

- however, in the first case, the link keeps working even if you move the document to some other place.

 

The URL consists of the following parts:

 

<domain>/getdoc/<document GUID>/<document name><extension>

 

The <document GUID> value is a unique identifier of the document. You can find this value in CMS Desk -> Content -> Properties -> General, in field Node GUID.

 

The <document name> value may contain any value - it's not used by the system and it's only used for search engine optimization. By default, the system uses the document name for this value.

 

 

Linking a specific language version of the document

 

If you need to link to a specific language version of the document, you need to use a URL in the following format:

 

http://www.example.com/getdoc/8FG7-84E394-FABD-5678/our-services/fr-fr.aspx

 

It displays the given document in French (if the document is translated). It's an equivalent of

 

http://www.example.com/company/our-services.aspx?lang=fr-fr

 

The URL consists of the following parts:

<domain>/getdoc/<document GUID>/<document name>/<culture code><extension>

 

 

Linking attachments

 

If you need to create a permanent link to a file uploaded as a document attachment, you need to use a URL in the following format:

 

http://www.example.com/getattachment/763c8921-be94-4610-99b4-25e8d3be5b08/logo.aspx

 

The URL consists of the following parts:

<domain>/getattachment/<file GUID>/<filename><extension>

 

The <file GUID> value is not the same as document GUID. It's a GUID of the file in the CMS_Attachment table. You can find this GUID if you display the image in the CMS Desk and see its URL.

 

The <file name> value can contain any text.

 

 

You can find more details on available parameters in the following chapter GetFile.aspx parameters

 

Page url: http://devnet.kentico.com/docs/devguide/index.html?linking_pages_and_files.htm