Skip to content

Get a pagetitle based off of a TV #7

@adamwintle

Description

@adamwintle

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`
]]

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions