Skip to content

Instantly share code, notes, and snippets.

@t3easy
Forked from maximilian-mayer/categories.ts
Last active August 3, 2017 03:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t3easy/9829512 to your computer and use it in GitHub Desktop.
Save t3easy/9829512 to your computer and use it in GitHub Desktop.
20 = HMENU
20 {
special = categories
special.value = 2
1 = TMENU
1 {
wrap = <ul>|</ul>
NO {
wrapItemAndSub = <li>|</li>
stdWrap.append = CONTENT
stdWrap.append {
wrap = <ul>|</ul>
table = pages
select {
uidInList.field = uid
pidInList = 0
selectFields = sys_category.title
join = sys_category_record_mm ON pages.uid = sys_category_record_mm.uid_foreign JOIN sys_category ON sys_category.uid = sys_category_record_mm.uid_local
where = sys_category_record_mm.tablenames = 'pages'
orderBy = sys_category.sorting
}
renderObj = TEXT
renderObj {
field = title
wrap = <li>|</li>
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment