Skip to content

Instantly share code, notes, and snippets.

@aletoropov
Forked from eivko/head.modx.html
Created July 9, 2023 09:03
Show Gist options
  • Save aletoropov/a6161e67daedf6c46e55dbe92d9cf58d to your computer and use it in GitHub Desktop.
Save aletoropov/a6161e67daedf6c46e55dbe92d9cf58d to your computer and use it in GitHub Desktop.
Заголовок в MODX (если не пустой, вставляется longtitle
<title>[[*longtitle:isnot=``:then=`[[*longtitle]]`:else=`[[*pagetitle]]`]]</title>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment