Class TfMetadata
Provides page-level metadata.
User-facing controller scripts can override the site-level defaults by uncommenting the options at the bottom of each file. A good example of this is when viewing a single content object; if it has the metaTitle and metaDescription fields set you can assign those to this object in order to customise the page title and description to the object, thereby improving your SEO.
- TfMetadata uses TfMagicMethods
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Uses: trait TfMagicMethods Prevents direct setting of properties / unlisted properties.
Located at trust_path/libraries/tuskfish/class/TfMetadata.php
Methods summary
public
|
|
public
string|boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setGenerator( string $value )
Sets the meta generatorf (software used) property, which is not used in the default theme. |
public
|
|
public
|
Methods used from TfMagicMethods
Properties summary
protected
|
$validator
|
|
protected
|
$preference
|
|
protected
string
|
$title
|
#
''
|
protected
string
|
$description
|
#
''
|
protected
string
|
$author
|
#
''
|
protected
string
|
$copyright
|
#
''
|
protected
string
|
$generator
|
#
''
|
protected
string
|
$seo
|
#
''
|
protected
string
|
$robots
|
#
''
|
Magic properties
public
|
$validator
Instance of the Tuskfish data validator class. |
public
|
$preference
Instance of Tuskfish site preferences class. |
public
string
|
$title
Meta title of this website. |
public
string
|
$description
Meta description of this website. |
public
string
|
$author
Author of this website. |
public
string
|
$copyright
Copyright notice. |
public
string
|
$generator
Software system that generated this page. |
public
string
|
$seo
SEO optimisation string to append to page URL. |
public
string
|
$robots
Meta instructions to robots. |
public
integer
|
$paginationElements
Number of slots in the pagination control. |