Last active
August 3, 2017 03:50
-
-
Save t3easy/9810216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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