Created
November 24, 2015 08:40
-
-
Save josefglatz/468d7d8d1a7178da77b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.SysCategoryList = CONTENT | |
| lib.SysCategoryList { | |
| stdWrap.dataWrap = <div id="c{field:contentUid}-filter-{field:filterGroup}" class="button-group categories-list categories-list-filter--{field:filterGroup}" data-filter-group="c{field:contentUid}-{field:filterGroup}"><button class="button reset-mobile is-checked" data-filter="">{LLL:EXT:theme/Resources/Private/Language/locallang.xlf:menu.filterReset}</button>|</div> | |
| table = sys_category | |
| select { | |
| languageField = sys_language_uid | |
| selectFields = uid,title | |
| where { | |
| data = field:parentCategories | |
| intval = 1 | |
| wrap = sys_category.parent=| | |
| } | |
| orderBy = sys_category.sorting | |
| } | |
| renderObj = TEXT | |
| renderObj { | |
| dataWrap = <button class="button" data-filter=".cat{field:uid}">{field:title}</button> | |
| } | |
| } | |
| lib.pageSysCategories = CONTENT | |
| lib.pageSysCategories { | |
| table = pages | |
| select { | |
| uidInList.field = pageUid | |
| 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 | |
| orderBy = sys_category.sorting | |
| } | |
| renderObj = TEXT | |
| renderObj { | |
| field = uid | |
| noTrimWrap = |cat| | | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment