I have a very simple product catalog setup that won’t work. I’ve been days at this.
the call is:
[[!getResources?
&showHidden=’1’
&tpl=’productTpl’
&limit=’10’
&includeContent=’1’
&includeTVs=’1’
&processTVs=’1’
]]
the tpl (productTpl) is:
<div class="post-[[+id]] post hentry category-latest-news tag-tag3 tag-tag5 tag-tag7" id="post-[[+id]]">
<div class="post-top">
<div class="post-date">
<span class="day">[[+publishedon:strtotime:date=`%d`]]</span>
<span class="month">[[+publishedon:strtotime:date=`%b`]]</span>
<span class="year">[[+publishedon:strtotime:date=`%Y`]]</span>
</div>
<h2><a href="[[~[[+id]]]]" rel="bookmark" title="Permanent Link to [[+pagetitle]]">[[+pagetitle]]</a></h2>
</div>
<div class="entry">
<p><a href="[[~[[+id]]]]"><img class="alignleft" title="[[+tv.product_image_title]]" src="[[+tv.product_image]]" alt="" width="293" height="297" /></a>
[[+content:ellipsis=`350`]]</p>
<a href="[[~[[+id]]]]" class="more-link">Read the rest of this entry »</a></p>
</div>
<div class="postmetadata">Tags: <a href="#" rel="tag">tag3</a>, <a href="#" rel="tag">tag5</a>, <a href="#" rel="tag">tag7</a>
Posted in <a href="#" title="View all posts in Latest News" rel="category">Latest News</a> | <a href="single.html#comments" title="Comment on Blog Post 5">6 Comments »</a></div>
</div>
I was following Mary’s great tutorials at
http://codingpad.maryspad.com/2011/04/11/modx-revolution-for-complete-beginners-part-10-using-getresources-to-aggregate-content/#more-1733.
But I’m stuck here:
http://hewak.ca/breakawaydistributing.com/index.php?id=2
I’d be very grateful for any support.