You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug/feature request, or I just can't figure it out, but here's my scenario:
I've got a TV list which the user can choose a resource and the TV outputs the ID of the resource. I then want to use the ID on the page to output other various fields from that page, such as title, content, description, etc
so far I have tried various setPlaceholders queries without any luck:
[[!setPlaceholders?
&ph=`
ViewpointsIndustryFashion.title == tv.ViewpointsIndustryFashion.pagetitle !! no title ||
ViewpointsIndustryFashion.intro == tv.ViewpointsIndustryFashion.introtext !! no introtext
`
&prefix=``
&output=`0`
&processTVs=`1`
]]
What you want to do is use the value of the TV for the &id property, then all the stuff you reference in &ph will be relative to that resource by default. Viz.:
[[setPlaceholders?
&id=`[[*ViewpointsIndustryFashion]]`
&ph=`vif.title == pagetitle !! no title ||
vif.intro == introtext !! no introtext`
]]
Not sure if this is a bug/feature request, or I just can't figure it out, but here's my scenario:
I've got a TV list which the user can choose a resource and the TV outputs the ID of the resource. I then want to use the ID on the page to output other various fields from that page, such as title, content, description, etc
so far I have tried various setPlaceholders queries without any luck:
then on the page template:
[[+ViewpointsIndustryFashion.title]]
[[+ViewpointsIndustryFashion.intro]]
If I were to output just
[[+ViewpointsIndustryFashion]]
I'd get the ID of those resources as expected.If this type of getResourceFields output method possible with setPlaceholders?
The text was updated successfully, but these errors were encountered: