New answers tagged


Did you ever figure this out? I am hitting the same wall. I need to grab related Matrix blocks, but in order to get those related blocks, I need to send over an entry element or an entry id. I'd rather not have to run two queries every time. Argh.


I don't think there is an option in current craft to get the relations query based on the order. But you can do that, using where statements like this : {% set offers_for_institute = craft.entries().section('offers') .innerJoin('relations', ' = relations.sourceId') .andwhere('relations.sortOrder = 1') .andWhere("relations.targetId = #{entry....

Top 50 recent answers are included