-
☆ A M B ☆
- 24,524 Posts
Yes, you’d need to put it in a snippet and return the value.
$docobj = $modx->documentObject['objectName'];
return $docobj;
Or you just put [*objectName*] into your Chunk?
-
☆ A M B ☆
- 24,524 Posts
Yes. Like [*pagetitle*] and [*introtext*]. However, if you need to manipulate the values for some reason, like formatting the dates, you would use a snippet like that.
-
☆ A M B ☆
- 24,524 Posts
These are Unix timestamps.
http://il.php.net/strftime
Alrighty.
(I would use PHx here, but it conflicts with another script I use, so I can’t. x_x)