Show Menu
Cheatography

MODx cheatsheet Cheat Sheet by

MODx

MODx Evo Doc. Vars

id / parent
pagetitle/ menutitle / content
longtitle / alias / introtext / descri­ption
pub_date / unpub_date / createdon / editedon/ deletedon
published / searchable / cacheable / richtext / donthit / haskey­words / hasmet­atags / privateweb / privatemgr / hidemenu / conten­t_dispo
createdby / editedby / deletedby
menuindex
template
conten­tType

MODx Evo PHx

date=
dateformat
example: [+crea­ted­on:­date=
%d.%m.%Y
+]
md5
returns md5-hash
limit=
length
substr­($s­tr,­length), defaul­t:100
reverse
reversing letters
wordwrap=
length
lcase
example: [+stri­ng:­lcase+]
ucase
example: [+stri­ng:­ucase+]
ucfirst
example: [+stri­ng:­ucf­irst+]
length | len
example: [+stri­ng:­len+]
notags
example: [+stri­ng:­not­ags+]
userinfo=
field
 

MODx Evo Wayfinder non-tpl Params

startId
def. current doc
level
def. 0
limit
def. 0
sortOrder
def. ASC, opt: ASC || DESC
sortBy
def. menuindex
exclud­eDocs
includ­eDocs
debug
def. false
hideSu­bMenus
def. false, hides submenus, and shows for cur. item
remove­New­Lines
def. false, deletes new line symbol from result
textOf­Links
def. menutitle, parameter for text of link
titleO­fLinks
def. pagetitle, parameter for title of link
rowIdP­refix
def. false, inserts prefix for id of each link
useWeb­linkUrl
def. false, outputs full link into [+wf.l­ink+]
showSu­bDo­cCount
def. false, output count of child docs into [+wf.s­ubi­tem­count+]
ignore­Hidden
def. false
ph
name of placeh­older, which will insert results
 

MODx Evo Wayfinder tpl Params

outerTpl
def. [+wf.w­rap­per+], menu container chunk
rowTpl
def. [+wf.l­ink­tex­t+]­ยป[+­wf.w­ra­pper+], menu item chunk
parent­Row­HereTpl
def. false, active contai­ner­-do­cument chunk
parent­RowTpl
def. false, contai­ner­-do­cument ITEM chunk
hereTpl
def. false, current menu chunk
innerTpl
def. false, all contai­ner­-do­cuments CONTAINER chunk
innerR­owTpl
def. false, submenu item chunk
innerH­ereTpl
def. false, current contai­ner­-do­cument CONTAINER chunk
active­Par­ent­RowTpl
def. false, current item parents chunk
catego­ryF­old­ersTpl
def. false, category chunk
firstClass
def. none, first menu item class
hereClass
here, current item-chain class
selfClass
none, current item class
parent­Class
parent, contai­ner­-do­cuments class
rowClass
none, all menu-items class
levelClass
none, each level class
outerClass
none, container class
innerClass
none, submenu items class
webLin­kClass
none, links class
cssTpl
insert css chunk
jsTpl
insert javascript chunk
               
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          More Cheat Sheets by media_slave