Closed swilla closed 4 months ago
The screenshot of the dump is just showing the entry's data, which will just be the raw ID. I'm guessing you've tried something like this?
{{ soothsayer:title }}
Ok, I figured this out. I was accessing a property that didn't exist on the runway model yet. I addition, the as
piece was messing things up. Here is the final version that works:
{{ collection:featured_soothsayers limit="3" }}
<div
id="card-{{ count }}"
x-show="card{{ count }}"
class="flex flex-row justify-center"
x-transition:enter.duration.1000ms
>
{{ partial:components/featured_soothsayer :img="tarot_card" :name="title" :bio="content" :photo="soothsayer:profile_picture" }}
</div>
{{ /collection:featured_soothsayers }}
Description
I'm trying to access a runway belongsTo relation from a non-runway Collection. I can see the "ID" if the belongsTo relation, but I cannot access any of the properties on that model.
Steps to reproduce
Setup a Collection that has a belongsTo field to a runway model.
Model Config:
Environment