Method: getTitle([$escaped])

Returns the correct caption for this link. By default, this will use the title of the document being linked to, but this may be substituted in the CMS for a dedicated link caption in the case of selective navs.

if $escaped == true, the title is returned ready escaped for HTML use. If escaped == false, this is returned as an unescaped plaintext string.

Arguments:

$escaped (BOOL) optional - default: true

Returns:

STRING

Example:

$link->getTitle()

Example 2:

<h2><?php echo $link->getTitle() ?></h2>

<script type="text/javascript">alert('<?php echo addslashes($link->getTitle(false)) ?>')</script>

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com