Skip to content

Commit

Permalink
Added root, workspace and http-host system params
Browse files Browse the repository at this point in the history
As per #8, those new params can be accessed usign
{$system:root}, {$system:workspace}, {system:http-host},
  • Loading branch information
nitriques committed Oct 22, 2014
1 parent 2cf3321 commit 61b2d52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fields/field.link_preview.php
Expand Up @@ -214,6 +214,9 @@ private function getSystemData($entryId) {
'system:day' => DateTimeObj::format('now','d'),
'system:month' => DateTimeObj::format('now','m'),
'system:year' => DateTimeObj::format('now','Y'),
'system:root' => URL,
'system:workspace' => URL . '/workspace',
'system:http-host' => HTTP_HOST,
);
}

Expand Down

0 comments on commit 61b2d52

Please sign in to comment.