I’m currently creating a book page and there is a subpage for each book with information about the books and links to specific shops.
For each link I did the following:
I created a TV called „shop-link-1“ (Example):
shop-link-1
Than I created a chunk called „shop-link-1“:
← a href = " [[*shop-link-1]] " target=“_blank”> Shop</a →
After this I created a chunk called „buy“ for all the links:
[[*shop-link-1:notempty=[[$shop-link-1]]]]
[[*shop-link-2:notempty=[[$shop-link-2]]]]
[[*shop-link-3:notempty=[[$shop-link-3]]]]
Then I called the chunk [[$buy]] an the subpage and it worked.
Now I want to show the bookcover und the links together with other books on a mainpage. Therefore I created a tpl:
Here I want to show the shop links from the subpage. But I don’t know, how I call the content of a chunk [[$buy]] ? So I have to do it for the other books too.
Are you using the snippet getResources (or maybe pdoResources) for this?
I’m not sure I understand your question correctly, but the problem is probably, that a tag like [[*shop-link-1]] (you use in the chunk) is only for the TV-value of the requested resource.
If you list content from other resources on a page with getResources, then you have to use placeholder tags (like [[+tv.name_of_tv]]) instead.
So you probably have to create a new chunk with code like this