API:getPlaceholder

From MODx Wiki
Jump to: navigation, search
 API Function Definition: 
getPlaceholder
Versions 
> 0.9.2
Return Values
Success: Contents of placeholder
Fail: void
Data Type 
string
Object Hierarchy 
DocumentParser
string getPlaceholder();


getPlaceholder will return the content contained in the placeholder: $name.

Examples

$pagetitle = $modx->getPlaceholder('jobtitle');

Related functions

Function source

File: manager/includes/document.parser.class.inc.php
Line: 1930
  1. function getPlaceholder($name) {
  2. return $this->placeholders[$name];
  3. }
Personal tools