It works for the container page, I mean in the loop. But when I go to a single page, the below code doesn’t show the assigned artist properly, when I assign any artist who works for some program and doesn’t work for some.
But when the *assign_artist
select field is empty, it shows some article instead of the artist.
If I debug the [[*assign_artist]]
, it outputs nothing when empty. So, how does it display some posts from the program container?
Waiting for your assistance. Thanks.
[[!pdoResources:!empty=`
<li>
Artist:
<span>
[[!pdoResources?
&tpl=`@CODE:<a href="{{~{{+id}}}}">{{+pagetitle}}</a>`
&resources=`[[*assign_artist:replace=`||==,`]]`
&parents=`0`
&outputSeparator=`, `
]]
</span>
</li>
`?
&tpl=`@CODE:<a href="{{~{{+id}}}}">{{+pagetitle}}</a>`
&resources=`[[*assign_artist:replace=`||==,`]]`
&parents=`0`
&outputSeparator=`, `
]]