I have what is probably a very basic questions; I’m sure I’m overlooking something very easy, but for the life of me I can’t figure it out.
In brief, I am building a portfolio. On the "portfolio home" page, I will have a list of thumbnail images and their titles. When you click on the title or image, it takes you to a page featuring that image and a description, etc. Very much like a blog. I’m using getResources to run this, and I have it pulling the title okay to the portfolio home page, but
the image is empty. When I click on the title, it takes me to that specific page and
the image is there.
I am using the same TV code to pull both images (perhaps I shouldn’t?) and am very lost.
Here’s my code:
Portfolio Item Chunk, displayed on the portfolio home:
<div class="portfolio-item [[*!tags]]">
<img src="[[*portfolioItemThumb]]" alt="[[+pagetitle]]" />
<h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
</div>
individual portfolio item page:
[[$header]]
<div id="content">
<h2 class="title">[[*pagetitle]]</h2>
<img src="[[*portfolioItemThumb]]" alt="[[*pagetitle]]" />
<div class="entry">
<p>[[*portfolioItemDescription]]</p>
</div>
</div>
[[$footer]]
portfolio home page:
[$header]]
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`portfolioItem`
&parents=`22,23`
&limit=`5`
&includeContent=`1`
&includeTVs=`1`
&showHidden=`0`
&hideContainers=`1`
&cache=`0`
&pageVarKey=`page`
]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
[[$footer]]
I have the TVs setup as input: Image, output: default.
Thanks in advance!
Cheers
ModX Revolution 2.0.8 traditional
PHP Version 5.2.14
MySQL Version 5.0.32