We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53460
    • 69 Posts
    So I have a list of articles using pdoResources like so:
    [[pdoResources?
        &parents=`189,190,4`
        &depth=`2`
        &tplFirst=`Recent1NewsEventsTpl`
        &tplLast=`RecentLastNewsEventsTpl`
        &tpl =`RecentNewsEventsTpl`
        &tpl_n4=`Recent4NewsEventsTpl`
        &includeTVs=`EventLocation,EventStart,EventEnd,EventCity,EventState`
        &sortby=`publishedon`
        &sortdir=`DESC`
        &limit=`200`
        &select = `{"modResource":"id,pagetitle,uri,parent,publishedon"}`
        &where=`{"template:IN":[33,34,29],"publishedon:>":"[[time? &input=`-6 month`]]"}`
        &tvFilters=`EventServicesAndIndustries==%[[*link_attributes]]%||RelatedServicesAndIndustries==%[[*link_attributes]]%||InsightServicesAndIndustries==%[[*link_attributes]]%`
        &toPlaceholder=`relatedNewsEvents`
    ]]
    

    And is inserted like this:
    [[+relatedNewsEvents:notempty=`
    <section class="module-content_card_slider">
        <div class="row">
            <div class="header">
                <h4>Latest in [[*pagetitle]] [[!get6MonthesAgoTimestamp]]</h4>
            </div>
            <div class="slider">
                [[+relatedNewsEvents]]
            </div>
        </div>
    </section>
    `]]
    


    The link_attributes field is a custom string identifying the subject that I'm viewing. Basically it's looking for any of these services in the database that's attributed to a specific subject.

    I also added to each item that the pdoResources is looking for, a TV called isFeatured. This is just a checkbox with Featured==1 as the only option. How should I amend what I have to only show items from this list that have isFeatured checked?

    I tried adding isFeatured==1 to tvFilters and isFeatured to the includeTVs parameter, but those didn't do anything.