Last active
April 19, 2016 16:26
-
-
Save justenj/92dd9e36502b42d45ba490763f9c7ffb to your computer and use it in GitHub Desktop.
Sort with parent resource
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
[[!mFilter2? | |
&cache=`1` | |
&class=`modResource` | |
&sortby=`{ | |
"modResource.menuindex":"ASC", | |
"Parent.menuindex":"ASC" | |
}` | |
&leftJoin=`{ | |
"Parent": { | |
"class": "modResource", | |
"on": "modResource.parent = Parent.id" | |
} | |
}` | |
&select=`{"Parent": "Parent.menuindex as parent_menuindex"}` | |
&where = `{"template":"17"}` | |
&includeTVs = `work_gallery` | |
&tvPrefix = `` | |
&disableSuggestions = `1` | |
&filters = `tv|work_type:checkbox, | |
tv|style:checkbox, | |
tv|square:checkbox` | |
&tpl = `portfolio_tpl` | |
&tplOuter = `tpl.mFilter2.outer.portfolio` | |
&tplFilter.outer.default = `tpl.mFilter2.filter.outer.portfolio` | |
&tplFilter.row.tv|work_type = `tpl.mFilter2.filter.option.portfolio` | |
&tplFilter.row.tv|style = `tpl.mFilter2.filter.option.portfolio` | |
&tplFilter.row.tv|square = `tpl.mFilter2.filter.option.portfolio` | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment