I'm having a bit of trouble figuring out the getResources functionality of MODX. My current objective is to make adding/editing some current entries on a website easier. If you click here (
http://senntenial.com/downloads ) and navigate to instruments, you'll see that I have lots of repeated items with slightly modified information like descriptions, etc. How would I do this?
Currently, my setup is like this:
I have a downloads page container and template that contains all of my basic HTML and the getResources call that looks like this:
[[!getResources?
&parent='0'
&depth='1'
&tpl='downloadTile'
&includeContent='1'
&includeTVs='1'
&processTVs='1'
&showHidden='1'
&sortby='menuindex'
&sortdir='ASC'
]]
My &tpl is contained in the following chunk:
<!--BLOCK TILE-->
<a target="_blank" href="[[+tv.downloadLink]]">
<div class="tile">
<!--moreinfo-->
<div class="bottom">
<img class="download" src="[[+tv.downloadImage]]"/>
</div>
<!--SC WIDGET-->
[[+tv.downloadSC]]
<!--title-->
<div class="title">
[[+tv.downloadTitle]]
</div>
<!--content-->
<div class="content">
[[+tv.downloadDescription]]
</div>
</div>
</a>
<!--END BLOCK TILE-->
I've set up my template variables correctly, but I'm a bit stuck on how to implement the getResources call.
If it helps, I also have screenshots of both my elements and resources file structure:
http://puu.sh/6E1p0.png /
http://puu.sh/6E1rT.png
[ed. note: piedoom last edited this post 10 years, 1 month ago.]