Hi everybody
I would like to use ditto to display teachers Names in a two column layout on the same page. For example teacher 1-35 would be displayed in the left column and teachers 36- 50 in right column. Is there a way to use ditto this way and keep the ability to use the sort order?
hi.
try using 2 identicalls ditto but with differents filters..
for example leftcol could be filtered with &filter=`id,35,4` or something similar..
more here :
http://ditto.modxcms.com/tutorials/basic_filtering.html
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save
You would put 2 ditto calls on the page
This is using a table as an example:
<table>
<tr>
<td class="left-column">
ditto call for first 35 here
</td>
<td class="right-column">
ditto call for next 35 here
</td>
<tr>
</table>
I think you would want to use the WHERE clause.
You could build a 2 col table by using the altTpl for the second col. I prefer and recommend to do this with CSS since you will get more flexibility.