I know this isn’t about internationalization, but this seems the best spot to put it.
Do you think we could add two simple snippets to the default 1.0 install?
The first would be ’gettitle’, and the code would be:
$doc=$modx->getDocument($modx->documentIdentifier);
return ($doc['longtitle'] ? $doc['longtitle'] : $doc['pagetitle']);
It is something I use on almost every site, instead of calling [*longtitle*] in my templates. You could make it more fancy if you would like, but I think many people would use it.
The second snippet I would like would be called ’date’ and would just pass a param to the php date function, so a call like this:
[!date? &format=`M d, Y`!]
would give the current date. Again, you might want to make it more fancy than that, but it is a function many people would use (like putting the current year for the copyright).
Just an idea!