Hi MODX People,
I am trying to set up a kind of calendar on my new website.
I use gesResources to get all events from a folder. That is working so far.
Inside the eventTpl, I have another getResources call to get more info on the location the event is happening at (location name, lon/lat for a map etc). This info is stored in another resource which describes the location.
Unfortunately, it's not giving any output at all. Maybe you can help me out here:
calendar chunk:
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`77`
&resources=`-78, -163`
&includeContent =`false`
&includeTVs=`1`
&processTVs=`1`
&sortbyTV = `Eventdate`
&sortbyTVType= `datetime`
&sortdirTV = `DESC`
&tpl=`ShortEventTpl`
&tpl_n4= `ShortEventTpl4`
&pageNavOuterTpl=`[[+prev]][[+pages]][[+next]]`
]]
<br />
<div class="pageNav">[[!+page.nav]]</div>
shortEventTpl (the 1st tv.Location is only set for testing):
<div class="three columns event">
<h4>
<a href="[[~[[+id]]]]" title="[[+pagetitle]]" style="-webkit-transform: rotate([[+editedon:reverse:limit=`1`:subtract=`4`]]deg) translate3d( 0, 0, 0);-moz-transform: rotate([[+editedon:reverse:limit=`1`:subtract=`4`]]deg);-ms-transform: rotate([[+editedon:reverse:limit=`1`:subtract=`4`]]deg);">[[+pagetitle]]</a>
</h4>
<p><em>[[+tv.Eventdate:strtotime:date=`%e.%m.%Y`]], [[+tv.Location]], [[!getResources? &parents=`[[+tv.Location]]` &tpl=`eventLocationTpl` &includeTVs=`1` &processTVs=`1`]]</em><br />
[[+content:notags:ellipsis=`200`]]<a href="[[~[[+id]]]]" title="[[+pagetitle]]"> [mehr...]</a></p>
</div>
eventLocationTpl:
<a href="[[~[[!+id]]]]" title="[[!+pagetitle]]">[[!+tv.pagetitle]]</a>
I dont get any output from the second getResources call. I had it display false links (all the same), but that is not what I want
Any clues?
Cheers,
Guido