-
- 372 Posts
How about a different approach? Since it sounds like you are using getResources can you use the publish and unpublish dates?
I am using this...
[[!getPage@Events?
&elementClass=`modSnippet`
&element=`getResources`
&includeTVs=`1`
&tvPrefix =``
&tpl=`tpl.Events`
&showHidden=`1`
&sortbyTV=`startTime`
&sortdirTV=`ASC`
&sortbyTVType=`datetime`
]]
<div class="text-center">
<ul class="pagination">[[!+page.nav]]</ul>
</div>
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
-
- 833 Posts
So you're using MIGX, not getResources? It would be useful if you posted your full getPage call. All the answers, mine included, have assumed you were using getResources in your getPage call. FYI Articles uses getResources to list resources and I'm not sure you'll be well served with Articles.
A MODx Fanatic
-
- 5,888 Posts
I would use a custom-table and a MIGXdb - TV or create a MIGXdb - CMP