dotCMS - Open Source Content Management System, Ondemand CMS, and Professional Support

Document Search

Article Information

Since Version: 1.6.5
Tags: Permanent Link macros
Updated: 9/19/2008 1:20:24 PM
By: Dean Gonzalez
Doc id: 153300
Print Page: Export to PDF

Permanent Link

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 pass, the macro will look if the contentlet structure have a detail page set, using this page if this page is not set then use the same page where the permalink is include adding in the url the ?id param 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 display 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

#set($permalinkDetailPage='78945')
#permalink('12345')

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

#set($permalinkTitle ="The Title")
#permalink('12345')



Post a Comment


Add Comments

   

 
Post

Powered by Olark