Permanent Link - Documentation topics on: deprecated,permanent link,.

Permanent Link
Deprecated

This macro create the RDF trackback reference in the page for a permanent link to a file, Page or contentlet in the case of the contentlet it check if receive a parameter called "permalinkDetailPage" that is the inode or identifier of the content page detail. If not, check if the Content Type has a default Page, if not, return to the same Page appending an identifier parameter

Macro Overview:

Syntax:

#trackback(identifier)

Arguments:

  • identifier
    This is the identifier or inode of the file, page or contentlet, you want to create the RDF reference.
  • Optional Parameters:
  • permalinkDetailPage (velocity variable not a parameter)
    This is the identifier of the page that display the contentlet or inode of the file, page or contentlet, you want to create the link.

Optional Parameters:


Usage:


This macro create a permanent link to a File, Page or Contentlet from the identifier or inode of them and add the trackback RDF reference to the page. In the case where the identifier is from a contentlet, you could include which page you want to display the contentlet information, adding the page identifier in the optional parameter "permalinkDetailPage", if this parameter is not passed, the macro will look to see if if the Content Type has a detail page set, using this page. If this page is not set, then use the same page where the permalink is included, appending in the url the ?id parameter with the identifier.

Macro Overview:

Syntax:

#permalink(identifier)

Arguments:

  • identifier
    This is the identifier or inode of the file, Page or contentlet, you want to create the link.
  • Optional Parameters:
  • permalinkDetailPage (velocity variable not a parameter)
    This is the identifier of the page that displays the contentlet information. This parameter is only use for contentlets
  • permalinkTitle (velocity variable not a parameter)
    This is the link title. if is not set, the default title is "Permalink"

Enter Macro Arguments Here


Optional Parameters:


Usage:


Examples:

Example 1: A simple example using the required fields

#permalink("12345")

Example 2: An example showing how to include one or more of the optional parameters

<a> href="http://www.dotcms.org/permalink/0" class="permalink">Permalink</a> 

Example 3: An example showing how to include one or more of the optional parameters

<a> href="http://www.dotcms.org/permalink/0" class="permalink">The Title</a>


Examples:

Example 1: A simple example using the required fields

#trackback("12345")