Skip to content

Instantly share code, notes, and snippets.

@t3easy
Last active August 3, 2017 03:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t3easy/9810216 to your computer and use it in GitHub Desktop.
Save t3easy/9810216 to your computer and use it in GitHub Desktop.
lib.pageCategories = CONTENT
lib.pageCategories {
wrap = <ul>|</ul>
table = pages
select {
uidInList = this
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