I have a series of what I call Detail Pages. Each links to a corresponding Photo Gallery resource.
When the Photo Gallery resource is displayed, I'd like to have a few of the contents from the other resource brought in, and also have a button that can be clicked to get back to the original Detail Page.
Thought I had this solved by creating a TV on my Gallery Template to contain the ID of the resource it's associated with, and then use that in a pdoResources call for bringing in the contents I want. I'm doing something wrong though and it's not working as expected.
So lets say resource 9 is my detail page.
In my Gallery page I enter the number 9 in the TV field I set up. It's a TV named: detail_ID
My first chunk that is on the template contains the snippet call
[[!pdoResources?
&resources=`[[*detail_ID]]`
&tpl=`propDetailInfo`
&limit=`10`
&includeTVs=`propNeighborhood,propTitle`
&processTVs=`1`
&TVprefix=``
&depth=`1`
&showHidden=`1`
]]
My Chunk is: propDetailInfo
For now it just contains:
<p>[[+tv.propNeighborhood]] [[+tv.propTitle]]</p>
Basically, what I want is that when I create a new gallery resource, I want to be able to enter the ID of another resource in a TV field to be use for importing / including a few TV contents from that resource.
Can anyone tell me where I'm going wrong with this?
[ed. note: mmcgee last edited this post 11 years, 7 months ago.]